From 3c799abb44a4cc9a7b6c5bfcf583862946e57240 Mon Sep 17 00:00:00 2001 From: Jonathan Vander Mey Date: Sat, 8 Jun 2019 15:12:43 -0400 Subject: 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 --- test/command_callback/test_clang_tidy_command_callback.vader | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'test/command_callback/test_clang_tidy_command_callback.vader') diff --git a/test/command_callback/test_clang_tidy_command_callback.vader b/test/command_callback/test_clang_tidy_command_callback.vader index 3297a4cb..53ae311b 100644 --- a/test/command_callback/test_clang_tidy_command_callback.vader +++ b/test/command_callback/test_clang_tidy_command_callback.vader @@ -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_cpp_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_cpp_clangtidy_checks = ['*'] let b:ale_c_build_dir = '/foo/bar' -- cgit v1.2.3