https://bugs.kde.org/show_bug.cgi?id=384082
Bug ID: 384082
Summary: cppcheck is checking CMake generated files
Product: kdevelop
Version: 5.1.1
Platform: Archlinux Packages
OS: Linux
Status: UNCONFIRMED
Severity: minor
Priority: NOR
Component: Analyzer: Cppcheck
Assignee: [email protected]
Reporter: [email protected]
Target Milestone: ---
When using cppcheck to analyse the whole project (Analyse -> Cppcheck (Whole
Project) it tries to analyse c and cpp files generated by CMake. These are
located in the build folder, in my case under build/CMakeFiles/.
Solution:
Ignore the build folder completely.
Right now I sadly don't have time to get KDevelop to compile and make my own
merge request, but this could be fixed by simply changing line 240 of the
parameters.cpp from
result << checkPath;
to
result << "-ibuild" << checkPath;
--
You are receiving this mail because:
You are watching all bug changes.