User Activity

  • Posted a comment on discussion General Discussion on cppcheck

    Greetings! The library configuration table on page 30 in the cppcheck manual (https://cppcheck.sourceforge.io/manual.pdf) seems to be a bit broken. I've attached a screenshot.

  • Posted a comment on discussion Development on cppcheck

    While setting up cppcheck for a larger codebase (and working around my other problems) I've uncovered another issue, this time concering some... gymnastics using the preprocessor. It's not as contrived but I can't share the original. I've condensed it into this example: #define ADD_INT(x, y) x+y int main() { return ADD_INT(1, #if 1 5 #else 6 #endif ); } cppcheck (both latest master and last release) give the following* error: $ cppcheck preprocessorError.c Checking preprocessorError.c ... preprocessorError.c:5:0:...

  • Posted a comment on discussion Development on cppcheck

    I've failed to execute cppcheck on a larger codebase and condensed the problem to the following example: #define ADD_INT(x, y) add(x, &(int){y}) int add(int a, int *b) { return a+*b; } struct { int a; int b; } tuple = { .a = 10, .b = 10 }; int main() { ADD_INT(tuple.a, 5); ADD_INT(5, tuple.b); } Running cppcheck on this file yields this error: ast_problem.c:17:2: error: Syntax Error: AST broken, 'tuple' doesn't have a parent. [internalAstError] ADD_INT(5, tuple.b); ^ This happens for both a fresh...

  • Posted a comment on discussion Development on cppcheck

    Greetings! I've had an issue with the internal parser, for which I'll need to build a minimal example I can share. I've tried using the experimental clang parser but as soon as a standard header is included, I get the following error (both latest release and fresh build from master): $ cppcheck --clang helloworld.c Checking helloworld.c ... helloworld.c:0:0: error: Bailing out from analysis: Processing Clang AST dump failed: invalid AST location: <<built-in> [internalAstError] With helloworld.c being...

View All

Personal Data

Username:
hs-olp
Joined:
2025-05-06 08:43:56.361000

Projects

  • No projects to display.

Personal Tools

MongoDB Logo MongoDB