You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository has been archived by the owner on Sep 20, 2023. It is now read-only.
" syntastic config
set statusline+=%#warningmsg#
set statusline+=%{SyntasticStatuslineFlag()}
set statusline+=%*
let g:syntastic_always_populate_loc_list = 1
let g:syntastic_auto_loc_list = 1
let g:syntastic_check_on_open = 1
let g:syntastic_loc_list_height = 4
let g:syntastic_cpp_checkers = ["clang++"]
when I use this and put the compile_commands.json under the src dir, it won't show any loc_list, only like
If 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 this
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++.
Sign up for freeto subscribe to this conversation on GitHub.
Already have an account?
Sign in.
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
The text was updated successfully, but these errors were encountered: