cppcheck†
使い方†
コマンド書式†
$ cppcheck <option[s]> <input>
- <input> には、ソースファイル、またはソースファイルのあるディレクトリを指定する。
option†
option | description | remark |
--std=<id> | 言語標準を指定する。 | |
- --enable=<option>
option | description | remark |
all | Enable all checks | |
warning | Enable warning messages | |
style | Enable all coding style checks. | |
performance | Enable performance messages | |
portability | Enable portability messages | |
information | Enable information messages | |
unusedFunction | Check for unused functions. It is recommend to only enable this when the whole program is scanned | |
missingInclude | Warn if there are missing includes. For detailed information use --check-config | |
- 言語標準の指定
id | description | remark |
posix | POSIX compatible code | |
c89 | C code is C89 compatible | |
c99 | C code is C99 compatible | |
c11 | C code is C11 compatible (default) | |
c++03 | C++ code is C++03 compatible | |
c++11 | C++ code is C++11 compatible (default) | |
参考リンク†