mirror of
https://github.com/dense-analysis/ale.git
synced 2025-12-07 21:24:33 +08:00
Add additional option setting for clangtidy linter
The existing option setting handles setting additional compile flags to pass to clang-tidy. The new option setting added here allows setting additional clang-tidy specific flags to be passed as well. Fixes #2324
This commit is contained in:
@@ -29,6 +29,12 @@ Execute(You should be able to manually set compiler flags for clang-tidy):
|
||||
AssertLinter 'clang-tidy',
|
||||
\ ale#Escape('clang-tidy') . ' -checks=' . ale#Escape('*') . ' %s -- -Wall'
|
||||
|
||||
Execute(You should be able to manually set flags for clang-tidy):
|
||||
let b:ale_c_clangtidy_extra_options = '-config='
|
||||
|
||||
AssertLinter 'clang-tidy',
|
||||
\ ale#Escape('clang-tidy') . ' ' . ale#Escape('-config=') . ' %s'
|
||||
|
||||
Execute(The build directory should be configurable):
|
||||
let b:ale_c_clangtidy_checks = ['*']
|
||||
let b:ale_c_build_dir = '/foo/bar'
|
||||
|
||||
Reference in New Issue
Block a user