Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
29 changes: 28 additions & 1 deletion doc/quickfix.jax
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
*quickfix.txt* For Vim バージョン 9.1. Last change: 2024 Sep 10
*quickfix.txt* For Vim バージョン 9.1. Last change: 2024 Oct 05


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

CPPCHECK *quickfix-cppcheck* *compiler-cppcheck*

cppcheck パラメータを設定するには、g/b:`c_cppcheck_params` を使用する。デフォ
ルトのグローバル設定には以下が含まれる。

- `--verbose`: 冗長な出力を有効にする。
- `--force`: すべての構成のチェックを強制する。
- `--inline-suppr`: インライン抑制を許可する。
- `--enable=...`: 警告、スタイル、パフォーマンス、移植性、情報、および不足して
いるインクルードなどの特定のチェックを有効にする。
- `-j`: 利用可能な場合は、`getconf` コマンドによって決定された複数のプロセッサ
を使用する (unusedFunction チェックを省略する必要がある)

C++ ファイル (`filetype == 'cpp'`) の場合、Cppcheck がファイルを C++ として扱
うように `--language=c++` オプションが追加される。

compile_commands.json がカレントディレクトリに存在する場合、コマンドラインに
`--project` のパラメータとして追加される。それ以外の場合、デフォルトでは &path
内のディレクトリが include ディレクトリとして渡される。これらは
g/b:`c_cppcheck_includes` によって `-I` フラグのリストとして設定できる。Tim
Pope 氏の vim-apathy プラグイン [0] は &path を展開できる。git リポジトリ内の
フォルダも追加するには、以下を使用する >

let &l:path = join(systemlist('git ls-tree -d --name-only -r HEAD'), ',')

[0] https://github.com/tpope/vim-apathy

DOTNET *compiler-dotnet*

.NET の CLI コンパイラはデフォルトではエラーと警告の両方が出力される。変数
Expand Down
28 changes: 27 additions & 1 deletion en/quickfix.txt
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
*quickfix.txt* For Vim version 9.1. Last change: 2024 Sep 10
*quickfix.txt* For Vim version 9.1. Last change: 2024 Oct 05


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

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

CPPCHECK *quickfix-cppcheck* *compiler-cppcheck*

Use g/b:`c_cppcheck_params` to set cppcheck parameters. The global
settings by default include

- `--verbose`: Enables verbose output.
- `--force`: Forces checking of all configurations.
- `--inline-suppr`: Allows inline suppressions.
- `--enable=...`: Enables specific checks like warnings, style, performance,
portability, information, and missing includes.
- `-j`: Utilizes multiple processors if available, determined by the
`getconf` command if available (requires omitting the unusedFunction check)

For C++ files (`filetype == 'cpp'`), the `--language=c++` option is added to
ensure Cppcheck treats the file as C++.

If compile_commands.json is present in the current directory, it is added as a
`--project` parameter to the command line. Otherwise, by default the
directories in &path are passed as include directories. These can be set by
g/b:`c_cppcheck_includes` as a list of `-I` flags. Tim Pope's vim-apathy
plug-in [0] can expand &path. To also append the folders in a git repo use >

let &l:path = join(systemlist('git ls-tree -d --name-only -r HEAD'), ',')

[0] https://github.com/tpope/vim-apathy

DOTNET *compiler-dotnet*

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