summaryrefslogtreecommitdiff
path: root/ale_linters/c
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/c
parent06a97a854191b331b6ec37ef7ea0c59f671b1101 (diff)
downloadale-779589884164552442cab8ab077fa37afc7317fd.zip
Add tests for clangtidy with Makefile
Diffstat (limited to 'ale_linters/c')
-rw-r--r--ale_linters/c/clangtidy.vim3
1 files changed, 1 insertions, 2 deletions
diff --git a/ale_linters/c/clangtidy.vim b/ale_linters/c/clangtidy.vim
index 67ce6c2d..553cc23b 100644
--- a/ale_linters/c/clangtidy.vim
+++ b/ale_linters/c/clangtidy.vim
@@ -22,10 +22,9 @@ call ale#Set('c_build_dir', '')
function! ale_linters#c#clangtidy#GetCommand(buffer, output) abort
let l:checks = join(ale#Var(a:buffer, 'c_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, 'c_clangtidy_options')
let l:cflags = ale#c#GetCFlags(a:buffer, a:output)