This patch series is for improving the management of the following case: <macro> <typedef> <ident>
If <typedef> is a known typedef (such as u8 or *_t) then label <macro> as a CppMacro. Subsequent cases will label <typedef> correctly as a typedef ident. Also add bool to the list of known typedefs so that cases of <macro> bool <ident> are handled correctly just like any known typedef will be. Changes in v2: -------------- - Group these patches as a series for clarity - Add a test case for <macro> bool <ident> (Patch 3/3) - Explain what has been improved with Patch 2/3 parsing_c/parsing_hacks.ml | 37 ++++++++++++++++++++++++++++++++++++- tests/macro_before_bool.c | 4 ++++ tests/macro_before_bool.cocci | 9 +++++++++ tests/macro_before_bool.res | 5 +++++ 4 files changed, 54 insertions(+), 1 deletion(-) _______________________________________________ Cocci mailing list [email protected] https://systeme.lip6.fr/mailman/listinfo/cocci
