$ cppcheck --enable=all <input>
| option | description | remark |
|---|---|---|
| --std=<id> | 言語標準を指定する。 |
| 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) |