summaryrefslogtreecommitdiff
path: root/ale_linters
diff options
context:
space:
mode:
authorYe Jingchen <ye.jingchen@gmail.com>2018-09-26 22:50:43 +0800
committerYe Jingchen <ye.jingchen@gmail.com>2018-09-26 22:50:43 +0800
commit626e47f5c9c3c86fef56020bedae996e8b026a9f (patch)
tree6a4de28361f6bf3e6e2f5a76fee881cafef2d7e0 /ale_linters
parent56658fd3ada284a373afffb49b0ec2d66ad00445 (diff)
downloadale-626e47f5c9c3c86fef56020bedae996e8b026a9f.zip
Add ccls tests
Diffstat (limited to 'ale_linters')
-rw-r--r--ale_linters/c/ccls.vim4
-rw-r--r--ale_linters/cpp/ccls.vim4
-rw-r--r--ale_linters/objc/ccls.vim4
3 files changed, 9 insertions, 3 deletions
diff --git a/ale_linters/c/ccls.vim b/ale_linters/c/ccls.vim
index 0aad0a3d..d0fa566e 100644
--- a/ale_linters/c/ccls.vim
+++ b/ale_linters/c/ccls.vim
@@ -9,7 +9,9 @@ function! ale_linters#c#ccls#GetProjectRoot(buffer) abort
if empty(l:project_root)
let l:project_root = ale#path#FindNearestFile(a:buffer, 'compile_commands.json')
- elseif empty(l:project_root)
+ endif
+
+ if empty(l:project_root)
let l:project_root = ale#path#FindNearestFile(a:buffer, '.ccls')
endif
diff --git a/ale_linters/cpp/ccls.vim b/ale_linters/cpp/ccls.vim
index e63849c3..f1604f30 100644
--- a/ale_linters/cpp/ccls.vim
+++ b/ale_linters/cpp/ccls.vim
@@ -9,7 +9,9 @@ function! ale_linters#cpp#ccls#GetProjectRoot(buffer) abort
if empty(l:project_root)
let l:project_root = ale#path#FindNearestFile(a:buffer, 'compile_commands.json')
- elseif empty(l:project_root)
+ endif
+
+ if empty(l:project_root)
let l:project_root = ale#path#FindNearestFile(a:buffer, '.ccls')
endif
diff --git a/ale_linters/objc/ccls.vim b/ale_linters/objc/ccls.vim
index f354c7d7..e6736df7 100644
--- a/ale_linters/objc/ccls.vim
+++ b/ale_linters/objc/ccls.vim
@@ -9,7 +9,9 @@ function! ale_linters#objc#ccls#GetProjectRoot(buffer) abort
if empty(l:project_root)
let l:project_root = ale#path#FindNearestFile(a:buffer, 'compile_commands.json')
- elseif empty(l:project_root)
+ endif
+
+ if empty(l:project_root)
let l:project_root = ale#path#FindNearestFile(a:buffer, '.ccls')
endif