syntastic
                                
                                 syntastic copied to clipboard
                                
                                    syntastic copied to clipboard
                            
                            
                            
                        strange behavior of loc_list related to `g:syntastic_cpp_checkers`
my vimrc
" 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

No error, but shows loc_list.
Basic Info
- OS: ARCH LINUX
- syntastic version: 3.10.0
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++.