Looked into this briefly. Appears to be an issue with simplecpp, rather than cppcheck.
Simple example: #define NUM_CHAR(str) str##_numch inline auto operator "" _numch(const char *ch, std::size_t size) noexcept -> std:size_t { return size; } int main(void) { auto x = NUM_CHAR("abc"); } Produces on Cppcheck 1.87 : (error) failed to expand 'NUM_CHAR', Invalid ## usage when expanding 'NUM_CHAR'. Expected behaviour is that this does not produce an error. Running Cppcheck on the code with macro expanded does not produce any error: inline auto operator "" _numch(const char *ch, std::size_t...