summaryrefslogtreecommitdiff
path: root/ale_linters/cpp
diff options
context:
space:
mode:
authorGreg Anders <greg@gpanders.com>2019-10-06 10:29:23 -0600
committerGreg Anders <greg@gpanders.com>2019-10-06 10:29:23 -0600
commit779589884164552442cab8ab077fa37afc7317fd (patch)
treea6c9e256961f469fdeeaa8b5fb4ccfa0be81560b /ale_linters/cpp
parent06a97a854191b331b6ec37ef7ea0c59f671b1101 (diff)
downloadale-779589884164552442cab8ab077fa37afc7317fd.zip
Add tests for clangtidy with Makefile
Diffstat (limited to 'ale_linters/cpp')
-rw-r--r--ale_linters/cpp/clangtidy.vim3
1 files changed, 1 insertions, 2 deletions
diff --git a/ale_linters/cpp/clangtidy.vim b/ale_linters/cpp/clangtidy.vim
index 7c8defa4..191b7b07 100644
--- a/ale_linters/cpp/clangtidy.vim
+++ b/ale_linters/cpp/clangtidy.vim
@@ -16,10 +16,9 @@ call ale#Set('c_build_dir', '')
function! ale_linters#cpp#clangtidy#GetCommand(buffer, output) abort
let l:checks = join(ale#Var(a:buffer, 'cpp_clangtidy_checks'), ',')
let l:build_dir = ale#c#GetBuildDirectory(a:buffer)
-
- " Get the extra options if we couldn't find a build directory.
let l:options = ''
+ " Get the extra options if we couldn't find a build directory.
if empty(l:build_dir)
let l:options = ale#Var(a:buffer, 'cpp_clangtidy_options')
let l:cflags = ale#c#GetCFlags(a:buffer, a:output)