简体   繁体   中英

YouCompleteMe doesn't show errors when non standard header is included

When I try include gst.h YCM start innoring all error

For example:

#include <math.h>
//#include <gst/gst.h>

main (){ //ycm show error here
int a=0;
int b    //and here
}

but

#include <math.h>
#include <gst/gst.h>

main (){ //ycm don't show error here
int a=0;
int b    //and here
}

path to gst.h included to .ycm_extra_conf.py . What i miss?

:YcmDiags show all warning and error YCM messages. You must include all nested headers and then YCM parse your code right. Also you must install clang lib correct for C/C++ language.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM