2017-03-28 22:25:44 +00:00
|
|
|
===============================================================================
|
|
|
|
ALE C++ Integration *ale-cpp-options*
|
|
|
|
|
|
|
|
|
2017-07-08 13:17:26 +00:00
|
|
|
===============================================================================
|
2017-06-24 11:38:16 +00:00
|
|
|
Global Options
|
|
|
|
|
2018-03-27 18:24:22 +00:00
|
|
|
The following C options also apply to some C++ linters too.
|
|
|
|
|
|
|
|
* |g:ale_c_build_dir_names|
|
|
|
|
* |g:ale_c_build_dir|
|
|
|
|
* |g:ale_c_parse_makefile|
|
2018-07-29 18:24:19 +00:00
|
|
|
* |g:ale_c_parse_compile_commands|
|
2017-06-24 11:38:16 +00:00
|
|
|
|
|
|
|
|
2017-07-08 13:17:26 +00:00
|
|
|
===============================================================================
|
2017-03-28 22:25:44 +00:00
|
|
|
clang *ale-cpp-clang*
|
|
|
|
|
2017-07-16 20:37:10 +00:00
|
|
|
g:ale_cpp_clang_executable *g:ale_cpp_clang_executable*
|
|
|
|
*b:ale_cpp_clang_executable*
|
|
|
|
Type: |String|
|
|
|
|
Default: `'clang++'`
|
|
|
|
|
|
|
|
This variable can be changed to use a different executable for clang.
|
|
|
|
|
|
|
|
|
2017-03-28 22:25:44 +00:00
|
|
|
g:ale_cpp_clang_options *g:ale_cpp_clang_options*
|
2017-04-27 21:04:34 +00:00
|
|
|
*b:ale_cpp_clang_options*
|
2017-03-28 22:25:44 +00:00
|
|
|
Type: |String|
|
|
|
|
Default: `'-std=c++14 -Wall'`
|
|
|
|
|
|
|
|
This variable can be changed to modify flags given to clang.
|
|
|
|
|
|
|
|
|
2018-08-22 11:35:10 +00:00
|
|
|
===============================================================================
|
|
|
|
clangd *ale-cpp-clangd*
|
|
|
|
|
|
|
|
g:ale_cpp_clangd_executable *g:ale_cpp_clangd_executable*
|
|
|
|
*b:ale_cpp_clangd_executable*
|
|
|
|
Type: |String|
|
|
|
|
Default: `'clangd'`
|
|
|
|
|
|
|
|
This variable can be changed to use a different executable for clangd.
|
|
|
|
|
|
|
|
|
|
|
|
g:ale_cpp_clangd_options *g:ale_cpp_clangd_options*
|
|
|
|
*b:ale_cpp_clangd_options*
|
|
|
|
Type: |String|
|
|
|
|
Default: `''`
|
|
|
|
|
|
|
|
This variable can be changed to modify flags given to clangd.
|
|
|
|
|
|
|
|
|
2017-07-08 13:17:26 +00:00
|
|
|
===============================================================================
|
2017-07-16 20:37:10 +00:00
|
|
|
clangcheck *ale-cpp-clangcheck*
|
2017-06-24 15:10:04 +00:00
|
|
|
|
|
|
|
`clang-check` 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.
|
|
|
|
Therefore, `clang-check` linter reads the options |g:ale_c_build_dir| and
|
|
|
|
|g:ale_c_build_dir_names|. Also, setting |g:ale_c_build_dir| actually
|
|
|
|
overrides |g:ale_c_build_dir_names|.
|
|
|
|
|
|
|
|
|
2017-07-16 22:35:10 +00:00
|
|
|
g:ale_cpp_clangcheck_executable *g:ale_cpp_clangcheck_executable*
|
|
|
|
*b:ale_cpp_clangcheck_executable*
|
|
|
|
Type: |String|
|
|
|
|
Default: `'clang-check'`
|
|
|
|
|
|
|
|
This variable can be changed to use a different executable for clangcheck.
|
|
|
|
|
|
|
|
|
2017-07-16 20:37:10 +00:00
|
|
|
g:ale_cpp_clangcheck_options *g:ale_cpp_clangcheck_options*
|
|
|
|
*b:ale_cpp_clangcheck_options*
|
2017-06-24 15:10:04 +00:00
|
|
|
Type: |String|
|
|
|
|
Default: `''`
|
|
|
|
|
|
|
|
This variable can be changed to modify flags given to clang-check.
|
|
|
|
|
|
|
|
This variable should not be set to point to build subdirectory with
|
|
|
|
`-p path/to/build` option, as it is handled by the |g:ale_c_build_dir|
|
|
|
|
option.
|
|
|
|
|
|
|
|
|
2017-09-10 18:42:45 +00:00
|
|
|
===============================================================================
|
|
|
|
clang-format *ale-cpp-clangformat*
|
|
|
|
|
|
|
|
See |ale-c-clangformat| for information about the available options.
|
|
|
|
Note that the C options are also used for C++.
|
|
|
|
|
|
|
|
|
2017-07-08 13:17:26 +00:00
|
|
|
===============================================================================
|
2017-03-28 22:25:44 +00:00
|
|
|
clangtidy *ale-cpp-clangtidy*
|
|
|
|
|
2017-05-02 21:44:08 +00:00
|
|
|
`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.
|
2017-06-24 11:38:16 +00:00
|
|
|
Therefore, `clang-tidy` linter reads the options |g:ale_c_build_dir| and
|
|
|
|
|g:ale_c_build_dir_names|. Also, setting |g:ale_c_build_dir| actually
|
|
|
|
overrides |g:ale_c_build_dir_names|.
|
2017-05-02 21:44:08 +00:00
|
|
|
|
|
|
|
|
|
|
|
g:ale_cpp_clangtidy_checks *g:ale_cpp_clangtidy_checks*
|
|
|
|
*b:ale_cpp_clangtidy_checks*
|
|
|
|
Type: |List|
|
2018-10-29 22:48:05 +00:00
|
|
|
Default: `[]`
|
2017-05-02 21:44:08 +00:00
|
|
|
|
|
|
|
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.
|
|
|
|
|
2017-07-16 23:07:18 +00:00
|
|
|
|
|
|
|
g:ale_cpp_clangtidy_executable *g:ale_cpp_clangtidy_executable*
|
|
|
|
*b:ale_cpp_clangtidy_executable*
|
|
|
|
Type: |String|
|
|
|
|
Default: `'clang-tidy'`
|
|
|
|
|
|
|
|
This variable can be changed to use a different executable for clangtidy.
|
|
|
|
|
|
|
|
|
2017-03-28 22:25:44 +00:00
|
|
|
g:ale_cpp_clangtidy_options *g:ale_cpp_clangtidy_options*
|
2017-04-27 21:04:34 +00:00
|
|
|
*b:ale_cpp_clangtidy_options*
|
2017-03-28 22:25:44 +00:00
|
|
|
Type: |String|
|
2017-05-02 21:44:08 +00:00
|
|
|
Default: `''`
|
|
|
|
|
2019-06-08 19:12:43 +00:00
|
|
|
This variable can be changed to modify compiler flags given to clang-tidy.
|
2017-03-28 22:25:44 +00:00
|
|
|
|
2017-06-24 15:10:04 +00:00
|
|
|
- Setting this variable to a non-empty string,
|
|
|
|
- and working in a buffer where no compilation database is found using
|
|
|
|
|g:ale_c_build_dir_names| or |g:ale_c_build_dir|,
|
|
|
|
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, and no `compile_commands.json` file is in one
|
|
|
|
of the |g:ale_c_build_dir_names| directories of the project tree.
|
2017-03-28 22:25:44 +00:00
|
|
|
|
|
|
|
|
2019-06-08 19:12:43 +00:00
|
|
|
g:ale_cpp_clangtidy_extra_options *g:ale_cpp_clangtidy_extra_options*
|
|
|
|
*b:ale_cpp_clangtidy_extra_options*
|
|
|
|
Type: |String|
|
|
|
|
Default: `''`
|
|
|
|
|
|
|
|
This variable can be changed to modify flags given to clang-tidy.
|
|
|
|
|
|
|
|
|
2018-08-24 09:52:33 +00:00
|
|
|
===============================================================================
|
|
|
|
clazy *ale-cpp-clazy*
|
|
|
|
|
|
|
|
g:ale_cpp_clazy_executable *g:ale_cpp_clazy_executable*
|
|
|
|
*b:ale_cpp_clazy_executable*
|
|
|
|
Type: |String|
|
|
|
|
Default: `'clazy-standalone'`
|
|
|
|
|
|
|
|
This variable can be changed to use a different executable for clazy.
|
|
|
|
|
|
|
|
|
|
|
|
g:ale_cpp_clazy_checks *g:ale_cpp_clazy_checks*
|
|
|
|
*b:ale_cpp_clazy_checks*
|
|
|
|
Type: |List|
|
|
|
|
Default: `['level1']`
|
|
|
|
|
|
|
|
The checks to enable for clazy 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_clazy_options *g:ale_cpp_clazy_options*
|
|
|
|
*b:ale_cpp_clazy_options*
|
|
|
|
Type: |String|
|
|
|
|
Default: `''`
|
|
|
|
|
|
|
|
This variable can be changed to modify flags given to clazy.
|
|
|
|
|
|
|
|
|
2017-07-08 13:17:26 +00:00
|
|
|
===============================================================================
|
2017-03-28 22:25:44 +00:00
|
|
|
cppcheck *ale-cpp-cppcheck*
|
|
|
|
|
2017-07-16 21:11:43 +00:00
|
|
|
g:ale_cpp_cppcheck_executable *g:ale_cpp_cppcheck_executable*
|
|
|
|
*b:ale_cpp_cppcheck_executable*
|
|
|
|
Type: |String|
|
|
|
|
Default: `'cppcheck'`
|
|
|
|
|
|
|
|
This variable can be changed to use a different executable for cppcheck.
|
|
|
|
|
|
|
|
|
2017-03-28 22:25:44 +00:00
|
|
|
g:ale_cpp_cppcheck_options *g:ale_cpp_cppcheck_options*
|
2017-04-27 21:04:34 +00:00
|
|
|
*b:ale_cpp_cppcheck_options*
|
2017-03-28 22:25:44 +00:00
|
|
|
Type: |String|
|
|
|
|
Default: `'--enable=style'`
|
|
|
|
|
|
|
|
This variable can be changed to modify flags given to cppcheck.
|
|
|
|
|
|
|
|
|
2017-07-08 13:17:26 +00:00
|
|
|
===============================================================================
|
2017-05-10 17:41:58 +00:00
|
|
|
cpplint *ale-cpp-cpplint*
|
|
|
|
|
2017-07-16 23:17:59 +00:00
|
|
|
g:ale_cpp_cpplint_executable *g:ale_cpp_cpplint_executable*
|
|
|
|
*b:ale_cpp_cpplint_executable*
|
|
|
|
Type: |String|
|
|
|
|
Default: `'cpplint'`
|
|
|
|
|
|
|
|
This variable can be changed to use a different executable for cpplint.
|
|
|
|
|
|
|
|
|
2017-05-10 17:41:58 +00:00
|
|
|
g:ale_cpp_cpplint_options *g:ale_cpp_cpplint_options*
|
|
|
|
*b:ale_cpp_cpplint_options*
|
|
|
|
Type: |String|
|
|
|
|
Default: `''`
|
|
|
|
|
|
|
|
This variable can be changed to modify flags given to cpplint.
|
|
|
|
|
|
|
|
|
2018-06-06 16:03:15 +00:00
|
|
|
===============================================================================
|
|
|
|
cquery *ale-cpp-cquery*
|
|
|
|
|
|
|
|
g:ale_cpp_cquery_executable *g:ale_cpp_cquery_executable*
|
|
|
|
*b:ale_cpp_cquery_executable*
|
|
|
|
Type: |String|
|
|
|
|
Default: `'cquery'`
|
|
|
|
|
|
|
|
This variable can be changed to use a different executable for cquery.
|
|
|
|
|
|
|
|
|
|
|
|
g:ale_cpp_cquery_cache_directory *g:ale_cpp_cquery_cache_directory*
|
|
|
|
*b:ale_cpp_cquery_cache_directory*
|
|
|
|
Type: |String|
|
|
|
|
Default: `'~/.cache/cquery'`
|
|
|
|
|
|
|
|
This variable can be changed to decide which directory cquery uses for its
|
|
|
|
cache.
|
|
|
|
|
|
|
|
|
2018-02-25 14:11:04 +00:00
|
|
|
===============================================================================
|
|
|
|
flawfinder *ale-cpp-flawfinder*
|
|
|
|
|
|
|
|
g:ale_cpp_flawfinder_executable *g:ale_cpp_flawfinder_executable*
|
2018-02-25 15:04:56 +00:00
|
|
|
*b:ale_cpp_flawfinder_executable*
|
2018-02-25 14:11:04 +00:00
|
|
|
Type: |String|
|
|
|
|
Default: `'flawfinder'`
|
|
|
|
|
|
|
|
This variable can be changed to use a different executable for flawfinder.
|
|
|
|
|
|
|
|
|
|
|
|
g:ale_cpp_flawfinder_minlevel *g:ale_cpp_flawfinder_minlevel*
|
|
|
|
*b:ale_cpp_flawfinder_minlevel*
|
|
|
|
Type: |Number|
|
|
|
|
Default: `1`
|
|
|
|
|
|
|
|
This variable can be changed to ignore risks under the given risk threshold.
|
|
|
|
|
|
|
|
|
|
|
|
g:ale_cpp_flawfinder_options *g:ale-cpp-flawfinder*
|
|
|
|
*b:ale-cpp-flawfinder*
|
|
|
|
Type: |String|
|
|
|
|
Default: `''`
|
|
|
|
|
|
|
|
This variable can be used to pass extra options into the flawfinder command.
|
|
|
|
|
|
|
|
|
2017-07-08 13:17:26 +00:00
|
|
|
===============================================================================
|
2017-03-28 22:25:44 +00:00
|
|
|
gcc *ale-cpp-gcc*
|
|
|
|
|
2017-07-16 21:41:15 +00:00
|
|
|
g:ale_cpp_gcc_executable *g:ale_cpp_gcc_executable*
|
|
|
|
*b:ale_cpp_gcc_executable*
|
|
|
|
Type: |String|
|
|
|
|
Default: `'gcc'`
|
|
|
|
|
|
|
|
This variable can be changed to use a different executable for gcc.
|
|
|
|
|
|
|
|
|
2017-03-28 22:25:44 +00:00
|
|
|
g:ale_cpp_gcc_options *g:ale_cpp_gcc_options*
|
2017-04-27 21:04:34 +00:00
|
|
|
*b:ale_cpp_gcc_options*
|
2017-03-28 22:25:44 +00:00
|
|
|
Type: |String|
|
|
|
|
Default: `'-std=c++14 -Wall'`
|
|
|
|
|
|
|
|
This variable can be changed to modify flags given to gcc.
|
|
|
|
|
|
|
|
|
2018-09-05 00:39:32 +00:00
|
|
|
===============================================================================
|
|
|
|
uncrustify *ale-cpp-uncrustify*
|
|
|
|
|
|
|
|
See |ale-c-uncrustify| for information about the available options.
|
|
|
|
|
|
|
|
|
2018-09-26 12:09:37 +00:00
|
|
|
===============================================================================
|
|
|
|
ccls *ale-cpp-ccls*
|
|
|
|
|
|
|
|
g:ale_cpp_ccls_executable *g:ale_cpp_ccls_executable*
|
|
|
|
*b:ale_cpp_ccls_executable*
|
|
|
|
Type: |String|
|
|
|
|
Default: `'ccls'`
|
|
|
|
|
|
|
|
This variable can be changed to use a different executable for ccls.
|
|
|
|
|
|
|
|
|
|
|
|
g:ale_cpp_ccls_init_options *g:ale_cpp_ccls_init_options*
|
|
|
|
*b:ale_cpp_ccls_init_options*
|
|
|
|
Type: |Dictionary|
|
|
|
|
Default: `{}`
|
|
|
|
|
|
|
|
This variable can be changed to customize ccls initialization options.
|
|
|
|
Example: >
|
|
|
|
{
|
|
|
|
\ 'cacheDirectory': '/tmp/ccls',
|
|
|
|
\ 'cacheFormat': 'binary',
|
|
|
|
\ 'diagnostics': {
|
|
|
|
\ 'onOpen': 0,
|
|
|
|
\ 'opChange': 1000,
|
|
|
|
\ },
|
|
|
|
\ }
|
|
|
|
<
|
|
|
|
Visit https://github.com/MaskRay/ccls/wiki/Initialization-options for all
|
|
|
|
available options and explanations.
|
|
|
|
|
|
|
|
|
2017-07-08 13:17:26 +00:00
|
|
|
===============================================================================
|
2017-03-28 22:25:44 +00:00
|
|
|
vim:tw=78:ts=2:sts=2:sw=2:ft=help:norl:
|