mirror of
https://github.com/ultimatepp/ultimatepp.git
synced 2026-08-25 14:22:54 -06:00
ide: Settings warning about wrong libclang commandline
This commit is contained in:
parent
51c94a6565
commit
fbf46f57ac
2 changed files with 8 additions and 12 deletions
|
|
@ -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()
|
||||
|
|
|
|||
|
|
@ -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;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue