summaryrefslogtreecommitdiff
path: root/doc/ale-cpp.txt
diff options
context:
space:
mode:
authorw0rp <devw0rp@gmail.com>2017-05-02 22:44:08 +0100
committerw0rp <devw0rp@gmail.com>2017-05-02 22:44:08 +0100
commit3573975934f12588e431d902bb477429f635c747 (patch)
treefd22379339ea0d6e62e37343bdabdd8044a1a873 /doc/ale-cpp.txt
parenteb8bd26776fbdc57f0162d729260c4847645e145 (diff)
downloadale-3573975934f12588e431d902bb477429f635c747.zip
Fix #410 - Use compile_commands.json files for clang-tidy, and check files on disk instead
Diffstat (limited to 'doc/ale-cpp.txt')
-rw-r--r--doc/ale-cpp.txt27
1 files changed, 25 insertions, 2 deletions
diff --git a/doc/ale-cpp.txt b/doc/ale-cpp.txt
index 3baa767a..71673826 100644
--- a/doc/ale-cpp.txt
+++ b/doc/ale-cpp.txt
@@ -16,12 +16,35 @@ g:ale_cpp_clang_options *g:ale_cpp_clang_options*
-------------------------------------------------------------------------------
clangtidy *ale-cpp-clangtidy*
+`clang-tidy` will be run only when files are saved to disk, so that
+`compile_commands.json` files can be used. It is recommended to use this
+linter in combination with `compile_commands.json` files.
+
+
+g:ale_cpp_clangtidy_checks *g:ale_cpp_clangtidy_checks*
+ *b:ale_cpp_clangtidy_checks*
+ Type: |List|
+ Default: `['*']`
+
+ The checks to enable for clang-tidy with the `-checks` argument.
+
+ All options will be joined with commas, and escaped appropriately for
+ the shell. The `-checks` flag can be removed entirely by setting this
+ option to an empty List.
+
+
g:ale_cpp_clangtidy_options *g:ale_cpp_clangtidy_options*
*b:ale_cpp_clangtidy_options*
Type: |String|
- Default: `'-std=c++14 -Wall'`
+ Default: `''`
+
+ This variable can be changed to modify flags given to clang-tidy.
- This variable can be changed to modify flags given to clangtidy.
+ Setting this variable to a non-empty string will cause the `--` argument
+ to be passed to `clang-tidy`, which will mean that detection of
+ `compile_commands.json` files for compile command databases will be
+ disabled. Only set this option if you want to control compiler flags
+ entirely manually.
-------------------------------------------------------------------------------