Daniel Marjamäki
Daniel Marjamäki
In forum : https://sourceforge.net/p/cppcheck/discussion/general/thread/2811dc2f3b It was reported that `__VA_OPT__` is not handled. ``` #include #define p1(fmt, ...) printf(fmt __VA_OPT__(,) __VA_ARGS__) void test() { p1("hello"); p1("%s", "hello"); } ```
A self check is completed much faster with --check-level=fast compared to --check-level=normal. For me: linux: 5-6 times faster windows: 10 times faster Comparing warnings with --check-level=fast and --check-level=normal shows not...
I don't actually intend to merge this .. it's just a test to see how cppcheck premium head works
Example code: ``` #define bitmask(name) setbits(name##_START, name##_BITS) #define field(name, value) (((value)
Example code: ``` #define bar(x) x % 2 #define foo(x) printf(#x "\n") foo(bar(3)); ``` gcc output: ``` printf("bar(3)" "\n"); ``` simplecpp output: ``` printf("3%2" "\n"); ```
Reported here: https://sourceforge.net/p/cppcheck/discussion/general/thread/5f665265d7/ Example code: ``` #define IS_ENABLED(config_macro) Z_IS_ENABLED1(config_macro) #define Z_IS_ENABLED1(config_macro) Z_IS_ENABLED2(_XXXX##config_macro) #define _XXXX1 _YYYY, #define Z_IS_ENABLED2(one_or_two_args) Z_IS_ENABLED3(one_or_two_args 1, 0) #define Z_IS_ENABLED3(ignore_this, val, ...) val #define FOO 1 int main()...
crash
Try to reproduce crash reported in forum: https://sourceforge.net/p/cppcheck/discussion/development/thread/f26706dcca/
This is just to test out uploading SARIF to github see #6863