Daniel Marjamäki

Results 32 issues of Daniel Marjamäki

I made a PR earlier to fix Misra C++ 2023 6.8.4 warnings. I ran into some lifetime-problem but I am not exactly sure what it was. I want to investigate...

Example code: #define P( x, ...) printf( x __VA_OPT__(,) __VA_ARGS__) #define PF( x, ...) P( x __VA_OPT__(,) __VA_ARGS__) int main() { PF( "%s", "Hello" ); } The output from simplecpp...

I am the maintainer for open source Cppcheck project. I would like to have a Visual Studio plugin for Cppcheck. Would it be possible and/or interesting to extend or split...

Reduced example code: ``` #define DT_DRV_COMPAT renesas_ra_external_interrupt #define DT_FOREACH_OKAY_INST_renesas_ra_external_interrupt(fn) fn(0) fn(1) #define _DO_CONCAT(x, y) x ## y #define _CONCAT(x, y) _DO_CONCAT(x, y) #define Z_IS_ENABLED1(config_macro) Z_IS_ENABLED2(_XXXX##config_macro) #define _XXXX1 _YYYY, #define Z_IS_ENABLED2(one_or_two_args)...

bug

Example code: ``` #define dostuff(X) X dostuff( #ifdef A 1 #endif -1 ) ``` simplecpp writes an error message and aborts: ``` 1.c:5: syntax error: failed to expand 'dostuff', it...