ide: Settings warning about wrong libclang commandline

This commit is contained in:
Mirek Fidler 2022-12-01 00:19:33 +01:00
parent 51c94a6565
commit fbf46f57ac
2 changed files with 8 additions and 12 deletions

View file

@ -658,6 +658,14 @@ void Ide::SetupFormat() {
FileSetTime(ConfigFile("version"), ToTime(~ide.showtimeafter));
FinishConfig();
SaveConfig();
for(int cpp = 0; cpp < 2; cpp++) {
Clang h;
if(!h.Parse(GetHomeDirFile(cpp ? "test.cpp" : "test.c"), "", GetCurrentIncludePath(), GetCurrentDefines(), 0)) {
Exclamation("libclang additional compiler options do not seem do be correct. Assist might not work.");
return;
}
}
}
void Ide::FinishConfig()

View file

@ -167,18 +167,6 @@ void CurrentFileThread()
current_file_parsing = false;
was_parsing = true;
}
if(!cfc.clang.tu) {
{
GuiLock __;
IdeShowConsole();
PutConsole("libclang parser has failed, please fix libclang options");
}
String h = LibClangCommandLine();
while(h == LibClangCommandLine()) {
Sleep(500);
if(Thread::IsShutdownThreads()) break;
}
}
if(Thread::IsShutdownThreads()) break;
if(cfc.clang.tu && autocomplete_do) {
Vector<AutoCompleteItem> item;