Menu

cppcheck 2.18 build folder fully rewritten every run

penguish
2025-08-08
3 days ago
  • penguish

    penguish - 2025-08-08

    Hi, I have recently switched to cppcheck 2.18 for our project (which is large, ~4 million lines of code) and I am finding that depite using the "--cppcheck-build-dir=quickcpp" option, the build directory is completely rewritten every time. My full command is below:

    ~/cppcheck-2.18.0/build/bin/cppcheck -j16 --std=c++20 --enable=warning,performance,portability --inline-suppr -D__CPPCHECK__ --suppress-xml=suppressions.xml -iCudaFitter.cpp -itest --cppcheck-build-dir=quickcpp --library=Athena.xml --xml-version=2 --check-level=exhaustive ./athena 2>results.xml

    is there some option here which is now interfering with that option? (--check-level=exhaustive? multithreading?). The same command was working with cppcheck 2.17 as I expected. My routine analysis time has now increased from ~ 1 hour to ~10 hours.

     

    Last edit: penguish 2025-08-08
  • CHR

    CHR - 3 days ago

    Thanks for reporting, ticket is here: https://trac.cppcheck.net/ticket/14064

     

Log in to post a comment.

Want the latest updates on software, tech news, and AI?
Get latest updates about software, tech news, and AI from SourceForge directly in your inbox once a month.