簡體   English   中英

當包含非標准標題時,YouCompleteMe不會顯示錯誤

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

當我嘗試包含gst.h YCM時,開始誤入所有錯誤

例如:

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

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

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

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

gst.h的路徑包含在.ycm_extra_conf.py中。 我想念什么?

:YcmDiags顯示所有警告和錯誤的YCM消息。 您必須包括所有嵌套的標頭,然后YCM正確解析您的代碼。 另外,您還必須安裝適用於C / C ++語言的clang lib。

暫無
暫無

聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.

 
粵ICP備18138465號  © 2020-2024 STACKOOM.COM