|
1 | | -*quickfix.txt* For Vim version 9.1. Last change: 2024 Sep 10 |
| 1 | +*quickfix.txt* For Vim version 9.1. Last change: 2024 Oct 05 |
2 | 2 |
|
3 | 3 |
|
4 | 4 | VIM REFERENCE MANUAL by Bram Moolenaar |
@@ -1278,6 +1278,32 @@ For writing a compiler plugin, see |write-compiler-plugin|. |
1278 | 1278 |
|
1279 | 1279 | Use the |compiler-make| plugin to undo the effect of a compiler plugin. |
1280 | 1280 |
|
| 1281 | +CPPCHECK *quickfix-cppcheck* *compiler-cppcheck* |
| 1282 | + |
| 1283 | +Use g/b:`c_cppcheck_params` to set cppcheck parameters. The global |
| 1284 | +settings by default include |
| 1285 | + |
| 1286 | +- `--verbose`: Enables verbose output. |
| 1287 | +- `--force`: Forces checking of all configurations. |
| 1288 | +- `--inline-suppr`: Allows inline suppressions. |
| 1289 | +- `--enable=...`: Enables specific checks like warnings, style, performance, |
| 1290 | + portability, information, and missing includes. |
| 1291 | +- `-j`: Utilizes multiple processors if available, determined by the |
| 1292 | + `getconf` command if available (requires omitting the unusedFunction check) |
| 1293 | + |
| 1294 | +For C++ files (`filetype == 'cpp'`), the `--language=c++` option is added to |
| 1295 | +ensure Cppcheck treats the file as C++. |
| 1296 | + |
| 1297 | +If compile_commands.json is present in the current directory, it is added as a |
| 1298 | +`--project` parameter to the command line. Otherwise, by default the |
| 1299 | +directories in &path are passed as include directories. These can be set by |
| 1300 | +g/b:`c_cppcheck_includes` as a list of `-I` flags. Tim Pope's vim-apathy |
| 1301 | +plug-in [0] can expand &path. To also append the folders in a git repo use > |
| 1302 | +
|
| 1303 | + let &l:path = join(systemlist('git ls-tree -d --name-only -r HEAD'), ',') |
| 1304 | +
|
| 1305 | +[0] https://github.com/tpope/vim-apathy |
| 1306 | + |
1281 | 1307 | DOTNET *compiler-dotnet* |
1282 | 1308 |
|
1283 | 1309 | The .NET CLI compiler outputs both errors and warnings by default. The output |
|
0 commit comments