简体   繁体   English

当包含非标准标题时,YouCompleteMe不会显示错误

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

When I try include gst.h YCM start innoring all error 当我尝试包含gst.h YCM时,开始误入所有错误

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 . gst.h的路径包含在.ycm_extra_conf.py中。 What i miss? 我想念什么?

:YcmDiags show all warning and error YCM messages. :YcmDiags显示所有警告和错误的YCM消息。 You must include all nested headers and then YCM parse your code right. 您必须包括所有嵌套的标头,然后YCM正确解析您的代码。 Also you must install clang lib correct for C/C++ language. 另外,您还必须安装适用于C / C ++语言的clang lib。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

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