diff options
author | w0rp <devw0rp@gmail.com> | 2018-07-29 19:24:19 +0100 |
---|---|---|
committer | w0rp <devw0rp@gmail.com> | 2018-07-29 19:24:27 +0100 |
commit | ac4bac8ea4c5a8d520041ad509e10af454fcfce4 (patch) | |
tree | 87a57a03149b62116b8e1b6fa96117e5e3186626 /ale_linters/cpp/clangcheck.vim | |
parent | a7b8cb4fe32b43dbeeadc8cb94f378b4e2112723 (diff) | |
download | ale-ac4bac8ea4c5a8d520041ad509e10af454fcfce4.zip |
Add support for parsing compile_commands.json files for C compilers
Diffstat (limited to 'ale_linters/cpp/clangcheck.vim')
-rw-r--r-- | ale_linters/cpp/clangcheck.vim | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/ale_linters/cpp/clangcheck.vim b/ale_linters/cpp/clangcheck.vim index a109d5d3..687991bd 100644 --- a/ale_linters/cpp/clangcheck.vim +++ b/ale_linters/cpp/clangcheck.vim @@ -16,7 +16,7 @@ function! ale_linters#cpp#clangcheck#GetCommand(buffer) abort let l:build_dir = ale#Var(a:buffer, 'c_build_dir') if empty(l:build_dir) - let l:build_dir = ale#c#FindCompileCommands(a:buffer) + let l:build_dir = ale#path#Dirname(ale#c#FindCompileCommands(a:buffer)) endif " The extra arguments in the command are used to prevent .plist files from |