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:
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
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
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
Thanks for reporting, ticket is here: https://trac.cppcheck.net/ticket/14064