Open starsareintherose opened 1 year ago
Syntastic is dead, you might consider using ALE instead.
Even when it was alive syntastic was a general framework, it was never great at checking C/C++. Specialized plugins such as YCM would make a lot more sense.
Still, if you insist on using syntastic: there is no such thing as a checker clang++
, there is only gcc
. To enable checking by clang++
you need to set the list of checker to gcc
, and set syntastic_cpp_compiler
to clang++
.
my vimrc
when I use this and put the
compile_commands.json
under the src dir, it won't show any loc_list, only likeIf I rm
let g:syntastic_cpp_checkers = ["clang++"]
It will be like this
However, if there is no error, if I left
let g:syntastic_cpp_checkers = ["clang++"]
out, it would be like thisNo error, but shows loc_list.
Basic Info