User Activity

  • Posted a comment on discussion General Discussion on cppcheck

    We run cppCheck on Windows Server 2016 Standard. We have two jobs where we execute cppCheck. One long running job which has all checks enabled and runs on 1 core (--enable=all, -j is not defined) and a short running job where some checks are disabled and all cores are used (-j12 --enable=style,information,missingInclude). As far as I've seen only some of the files are recreated in the build directory.

  • Posted a comment on discussion General Discussion on cppcheck

    Hello there We are using cppCheck build since two months and don't feel any improvements in build time at all. The files in the build directory get updated with each build and the folder contains over 4'021 files. A few details to our repository: We also run cppCheck over our testfiles. These testfiles are grouped into multiple libraries. Each library contains a set of files which have the same name accross all libraries (like TestSuiteSetup.c for example). Can the incremental check mechanism keep...

  • Posted a comment on discussion General Discussion on cppcheck

    Ok I see, configuring the build directory enables the check which is normally disabled in our case (since we currently don't use a build directory) and therefore we don't get the errors. Maybe a workaround would be to manually disable the unused function check. Is there a way to do that via cli?

  • Posted a comment on discussion General Discussion on cppcheck

    If the checker is enabled (-j1 is used) the suppressions works right. This behaves as it should If the checker is disabled (-j2 used): - If a build directory is provided, it's reporting an error. And this error does not say unmatched suppression, it says the function is unused even though it should be suppressed. - If no build directory is provided, same behavior as when using -j1 I would not make the output result dependent on the number of cpu cores used. In all 3 cases, I would expect the checker...

  • Modified a comment on discussion General Discussion on cppcheck

    I've tried to reproduce the problem with an unused function since these are the errors which are reported even though we suppressed them. I've tried the following configurations: // #1 This commend will ignore the suppressions and therefore error will be reported (falsely) "C:\Program Files\Cppcheck\cppcheck.exe" -j2 --enable=all --inline-suppr --xml-version=2 --cppcheck-build-dir=C:\cppCheckBuild %cd%\src\unused-func-1 // #2 This commend will process the suppressions and therefore error won't be...

  • Posted a comment on discussion General Discussion on cppcheck

    I've tried to reproduce the problem with an unused function since these are the errors which are reported even though we suppressed them. I've tried the following configurations: // #1 This commend will ignore the suppressions and therefore error will be reported (falsely) "C:\Program Files\Cppcheck\cppcheck.exe" -j2 --enable=all --inline-suppr --xml-version=2 --cppcheck-build-dir=C:\cppCheckBuild %cd%\src\unused-func-1 // #2 This commend will process the suppressions and therefore error won't be...

  • Modified a comment on discussion General Discussion on cppcheck

    We don't run cppCheck with the -j2 setting. Instead we use the following settings: - j12 --enable=all --inline-suppr --cppcheck-build-dir=C:\cppCheck --xml-version=2 Additionally we specify multiple directories to check and to ignore with the -I respectively -i flag as well as defines (-D). I will run our build with the -j2 option and report back if the problem still occurs.

  • Posted a comment on discussion General Discussion on cppcheck

    We don't run cppCheck with the -j2 setting. Instead we use the following settings: --enable=all --inline-suppr --cppcheck-build-dir=C:\cppCheck --xml-version=2 Additionally we specify multiple directories to check and to ignore with the -I respectively -i flag as well as defines (-D). I will run our build with the -j2 option and report back if the problem still occurs.

View All

Personal Data

Username:
jwirz
Joined:
2021-11-16 08:56:37

Projects

  • No projects to display.

Personal Tools

MongoDB Logo MongoDB