Open chrchr-github opened 1 month ago
Input: __attribute()##8;
__attribute()##8;
gcc/clang -E: __attribute()##8; cppcheck -E: __attribute ( )8 ; ==> )8 is one token https://trac.cppcheck.net/ticket/13165
gcc/clang -E
cppcheck -E
__attribute ( )8 ;
)8
There is unchecked ## processing here (as opposed to Macro::expandHashHash(): https://github.com/danmar/simplecpp/blob/3588ca804f80e1f0abbcaaf15afdf65c7c9d630e/simplecpp.cpp#L3742
##
Macro::expandHashHash()
Input:
__attribute()##8;
gcc/clang -E
:__attribute()##8;
cppcheck -E
:__attribute ( )8 ;
==>)8
is one token https://trac.cppcheck.net/ticket/13165