Skip to content

Commit a489631

Browse files
authored
Merge pull request #1733 from vim-jp/hh-update-quickfix
Update quickfix.{txt,jax}
2 parents 1b28032 + 32ba4c4 commit a489631

File tree

2 files changed

+55
-2
lines changed

2 files changed

+55
-2
lines changed

doc/quickfix.jax

Lines changed: 28 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
*quickfix.txt* For Vim バージョン 9.1. Last change: 2024 Sep 10
1+
*quickfix.txt* For Vim バージョン 9.1. Last change: 2024 Oct 05
22

33

44
VIMリファレンスマニュアル by Bram Moolenaar
@@ -1230,6 +1230,33 @@ Vimの古いバージョンをサポートするために、それらのプラ
12301230
コンパイラプラグインの効果を元に戻すには、|compiler-make| プラグインを使用す
12311231
る。
12321232

1233+
CPPCHECK *quickfix-cppcheck* *compiler-cppcheck*
1234+
1235+
cppcheck パラメータを設定するには、g/b:`c_cppcheck_params` を使用する。デフォ
1236+
ルトのグローバル設定には以下が含まれる。
1237+
1238+
- `--verbose`: 冗長な出力を有効にする。
1239+
- `--force`: すべての構成のチェックを強制する。
1240+
- `--inline-suppr`: インライン抑制を許可する。
1241+
- `--enable=...`: 警告、スタイル、パフォーマンス、移植性、情報、および不足して
1242+
いるインクルードなどの特定のチェックを有効にする。
1243+
- `-j`: 利用可能な場合は、`getconf` コマンドによって決定された複数のプロセッサ
1244+
を使用する (unusedFunction チェックを省略する必要がある)
1245+
1246+
C++ ファイル (`filetype == 'cpp'`) の場合、Cppcheck がファイルを C++ として扱
1247+
うように `--language=c++` オプションが追加される。
1248+
1249+
compile_commands.json がカレントディレクトリに存在する場合、コマンドラインに
1250+
`--project` のパラメータとして追加される。それ以外の場合、デフォルトでは &path
1251+
内のディレクトリが include ディレクトリとして渡される。これらは
1252+
g/b:`c_cppcheck_includes` によって `-I` フラグのリストとして設定できる。Tim
1253+
Pope 氏の vim-apathy プラグイン [0] は &path を展開できる。git リポジトリ内の
1254+
フォルダも追加するには、以下を使用する >
1255+
1256+
let &l:path = join(systemlist('git ls-tree -d --name-only -r HEAD'), ',')
1257+
1258+
[0] https://github.com/tpope/vim-apathy
1259+
12331260
DOTNET *compiler-dotnet*
12341261

12351262
.NET の CLI コンパイラはデフォルトではエラーと警告の両方が出力される。変数

en/quickfix.txt

Lines changed: 27 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
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
22

33

44
VIM REFERENCE MANUAL by Bram Moolenaar
@@ -1278,6 +1278,32 @@ For writing a compiler plugin, see |write-compiler-plugin|.
12781278

12791279
Use the |compiler-make| plugin to undo the effect of a compiler plugin.
12801280

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+
12811307
DOTNET *compiler-dotnet*
12821308

12831309
The .NET CLI compiler outputs both errors and warnings by default. The output

0 commit comments

Comments
 (0)