User Activity

  • Posted a comment on discussion Development on cppcheck

    @danielmarjamaki I've attached a patch file for test/testimportproject.cpp that adds tests for quoted -D symbol values. We have code that requires certain string literals to be supplied via -D defines. Dropping the quotes results in cppcheck reporting syntax errors or false-positive errors (e.g if contents of the string literal matches a valid symbol name)

  • Modified a comment on discussion Development on cppcheck

    Using cppcheck 2.13.0 Two issue related to parsing -D flag values from compile_commands.json: * Quotes are dropped from quoted values * Flag values containing spaces are completely dropped This can be shown by looking at the -D values printed by cppcheck in its config summary... (Note that in the config summary, the value passed on the CLI remains quoted, whereas the one from the project file does not.) (using bear to generate the json file) % touch null.c % bear -- gcc '-DPROJ_LITERAL="HelloWord"'...

  • Modified a comment on discussion Development on cppcheck

    Using cppcheck 2.13.0 Two issue related to parsing -ID flag values from compile_commands.json: * Quotes are dropped from quoted values * Flag values containing spaces are completely dropped This can be shown by looking at the -D values printed by cppcheck in its config summary... (Note that in the config summary, the value passed on the CLI remains quoted, whereas the one from the project file does not.) (using bear to generate the json file) % touch null.c % bear -- gcc '-DPROJ_LITERAL="HelloWord"'...

  • Posted a comment on discussion Development on cppcheck

    Using cppcheck 2.13.0 Two issue related to parsing -IDF flag values from compile_commands.json: * Quotes are dropped from quoted values * Flag values containing spaces are completely dropped This can be shown by looking at the -D values printed by cppcheck in its config summary... (Note that in the config summary, the value passed on the CLI remains quoted, whereas the one from the project file does not.) (using bear to generate the json file) % touch null.c % bear -- gcc '-DPROJ_LITERAL="HelloWord"'...

View All

Personal Data

Username:
sl-chl
Joined:
2024-08-12 04:34:10.839000

Projects

  • No projects to display.

Personal Tools