Sparse- add macro bracket checking
PATCH 1/1 Sparse- add macro bracket checking
G'day people,
I have done some more work on the macro bracket checking and I think it is now at a pretty workable stage so I thought I would submit it and see what everyone thinks.
My Idea with this was apart from the obvious cases, to check everything that would compile with brackets around it. So if you find code that this will warn about, but which will not compile with brackets around it please yell out.
I don't know much about this sort of thing, I guess I am doing this to learn new stuff. So I am very open to suggestions or comments.
Also should I add some pass and fail cases to the validation suite or something ?
Anyway here it is.
Signed-off-by Darren Jenkins <[email protected]>
allocate.h +0 -0
bitmap.h +0 -0
lib.c +1 -0
@@ -204,6 +204,7 @@ int Waddress_space = 1;int Wenum_mismatch =1 ;int Wdo_while =1 ;int Wuninitialized =1 ; +int Wmacro_argument_brackets =1 ;int dbg_entry =0 ;int dbg_dead =0 ;
lib.h +1 -0
@@ -98,6 +98,7 @@ extern int Wshadow;extern int Wcast_truncate;extern int Wdo_while;extern int Wuninitialized; +extern int Wmacro_argument_brackets;extern int dbg_entry;extern int dbg_dead;
pre-process.c +69 -1
82 lines not on this page · raw message