diff options
author | w0rp <w0rp@users.noreply.github.com> | 2019-06-08 22:45:39 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2019-06-08 22:45:39 +0100 |
commit | 6eb68b4507633166d192e03f51b9416d15400028 (patch) | |
tree | f3cb9d909f72712ab83eaa08fd48a557fa9cb541 /test | |
parent | 7b78f2b846e2f3443dcb2ceacee54eb99e37f040 (diff) | |
parent | 3c799abb44a4cc9a7b6c5bfcf583862946e57240 (diff) | |
download | ale-6eb68b4507633166d192e03f51b9416d15400028.zip |
Merge pull request #2566 from grimmn/extend-clangtidy-options
Add additional options setting for clang-tidy linter
Diffstat (limited to 'test')
-rw-r--r-- | test/command_callback/test_c_clang_tidy_command_callback.vader | 6 | ||||
-rw-r--r-- | test/command_callback/test_clang_tidy_command_callback.vader | 6 |
2 files changed, 12 insertions, 0 deletions
diff --git a/test/command_callback/test_c_clang_tidy_command_callback.vader b/test/command_callback/test_c_clang_tidy_command_callback.vader index f78d0ea7..fa76c66c 100644 --- a/test/command_callback/test_c_clang_tidy_command_callback.vader +++ b/test/command_callback/test_c_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_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' 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' |