.ycm_extra_conf.py
.
compile_commands.json
is too limiting, YCM users can solve that by implementing thte logic in the extra conf.
B.cpp
and get errors, because x
was never declared.
B.cpp
, parse it as if TU main file was only_compile_this.cpp
".