chrchr-github
chrchr-github
This input ~~~~ #pragma comment(linker, "foo \ bar") ~~~~ gets processed to a single closing `)`. I suspect the problem is somewhere near line 671 in simplecpp.cpp (TokenList::readfile). Found while...
https://trac.cppcheck.net/ticket/12379 ~~~ #include #include #include void f() { std::size_t i; const std::vector v{"4", "2"}; // Some comment\ for(i = 0U; i < v.size(); ++i) { std::cout
From https://trac.cppcheck.net/ticket/12105 ~~~ void g(const char*); #define HASH_TOKEN_IN_MACRO( A ) g( #A ) void f() { HASH_TOKEN_IN_MACRO ( #ifdef SW "Message 1" #else "Message 2" #endif ); } ~~~ `foo.cpp:5:...
Co-authored-by: Dominik Strasser