그냥 옵션주면 밋밋(?)한데
--enable=all 주면 조금 더 나오긴 한다.
$ cppcheck Cppcheck - A tool for static C/C++ code analysis Syntax: cppcheck [OPTIONS] [files or paths] If a directory is given instead of a filename, *.cpp, *.cxx, *.cc, *.c++, *.c, *.tpp, and *.txx files are checked recursively from the given directory. Options: /// 생략 /// Example usage: # Recursively check the current folder. Print the progress on the screen and # write errors to a file: cppcheck . 2> err.txt # Recursively check ../myproject/ and don't print progress: cppcheck --quiet ../myproject/ # Check test.cpp, enable all checks: cppcheck --enable=all --inconclusive --std=posix test.cpp # Check f.cpp and search include files from inc1/ and inc2/: cppcheck -I inc1/ -I inc2/ f.cpp For more information: http://cppcheck.net/manual.pdf |
[링크 : https://int-i.github.io/cpp/2023-01-07/cppcheck/]
여전히 좀 밋밋(?)한데 규칙을 지정해서 하는법 없나?
(information) Cppcheck cannot find all the include files (use --check-config for details) |
misra 룰을 빼낼 법을 찾아야...
[링크 : https://ppiazi.tistory.com/entry/MISRA-C2012-를-위한-CppCheck-사용]
'프로그램 사용 > clang' 카테고리의 다른 글
semgrep (0) | 2023.04.17 |
---|---|
clang 으로 컴파일 (0) | 2015.08.03 |
clang on ubnutu (0) | 2015.08.03 |
llvm / clang / cppcheck (0) | 2015.02.21 |