Replies: 4 comments 4 replies
-
Not a user of cppcheck myself, so these are only guesses, but you could try:
|
Beta Was this translation helpful? Give feedback.
-
I have a related issue with But I use |
Beta Was this translation helpful? Give feedback.
-
@TheLartians the only way I know so far is to patch the cmake generated file Line 38 in 3d00624 and than i.e. Line 39 in 3d00624 cppcheck can work with this file too! I prefer to use |
Beta Was this translation helpful? Give feedback.
-
With How this helps shows may project: ModernCmakeStarter |
Beta Was this translation helpful? Give feedback.
-
Hello!
I guess a simple question but I can't seem to make it work.
How to exclude the _deps folder from cpm.cmake from being checked with cppcheck?
my configure command:
/usr/bin/cmake --no-warn-unused-cli -DUSE_CCACHE=ON -DUSE_STATIC_ANALYZER=cppcheck -DCPPCHECK_ARGS=--enable=all -DCMAKE_EXPORT_COMPILE_COMMANDS:BOOL=TRUE -DCMAKE_BUILD_TYPE:STRING=Debug -DCMAKE_C_COMPILER:FILEPATH=/bin/gcc-9 -DCMAKE_CXX_COMPILER:FILEPATH=/bin/g++-9 -H/home/hub/Downloads/ModernCppStarter-master/test -B/home/hub/Downloads/ModernCppStarter-master/build -G Ninja
example of output (check doctest in _deps):
i tried the -i _deps option without success. any idea what i am missing?
thx for all the tools!
Beta Was this translation helpful? Give feedback.
All reactions