simplecpp icon indicating copy to clipboard operation
simplecpp copied to clipboard

Token pasting/concatenation with ## leads to invalid result

Open chrchr-github opened this issue 1 year ago • 1 comments

Input: __attribute()##8;

gcc/clang -E: __attribute()##8; cppcheck -E: __attribute ( )8 ; ==> )8 is one token https://trac.cppcheck.net/ticket/13165

chrchr-github avatar Oct 02 '24 12:10 chrchr-github

There is unchecked ## processing here (as opposed to Macro::expandHashHash(): https://github.com/danmar/simplecpp/blob/3588ca804f80e1f0abbcaaf15afdf65c7c9d630e/simplecpp.cpp#L3742

chrchr-github avatar Oct 02 '24 13:10 chrchr-github