mirror of
https://github.com/ultimatepp/ultimatepp.git
synced 2026-05-21 06:45:39 -06:00
ide: Fixed ASSIST issues with using VC++
This commit is contained in:
parent
b9df966e63
commit
31c1a5fcea
3 changed files with 24 additions and 4 deletions
|
|
@ -3,10 +3,18 @@
|
||||||
String CacheDir()
|
String CacheDir()
|
||||||
{
|
{
|
||||||
String dir;
|
String dir;
|
||||||
#ifdef PLATFORM_WIN32
|
#ifdef _DEBUG
|
||||||
dir = ConfigFile("cache");
|
#ifdef PLATFORM_WIN32
|
||||||
|
dir = ConfigFile("cache.debug");
|
||||||
|
#else
|
||||||
|
dir = ConfigFile(".cache/upp.cache.debug");
|
||||||
|
#endif
|
||||||
#else
|
#else
|
||||||
dir = ConfigFile(".cache/upp.cache");
|
#ifdef PLATFORM_WIN32
|
||||||
|
dir = ConfigFile("cache");
|
||||||
|
#else
|
||||||
|
dir = ConfigFile(".cache/upp.cache");
|
||||||
|
#endif
|
||||||
#endif
|
#endif
|
||||||
ONCELOCK {
|
ONCELOCK {
|
||||||
RealizeDirectory(dir);
|
RealizeDirectory(dir);
|
||||||
|
|
|
||||||
|
|
@ -433,6 +433,8 @@ void Ide::SyncBuildMode()
|
||||||
String h = method + ' ';
|
String h = method + ' ';
|
||||||
h << (targetmode ? "Release" : "Debug");
|
h << (targetmode ? "Release" : "Debug");
|
||||||
buildmode <<= h;
|
buildmode <<= h;
|
||||||
|
TriggerIndexer();
|
||||||
|
editor.TriggerSyncFile(0);
|
||||||
}
|
}
|
||||||
|
|
||||||
void Ide::DropMethodList()
|
void Ide::DropMethodList()
|
||||||
|
|
|
||||||
|
|
@ -103,8 +103,18 @@ bool Clang::Parse(const String& filename_, const String& content,
|
||||||
|
|
||||||
Vector<String> args;
|
Vector<String> args;
|
||||||
|
|
||||||
for(const String& s : Split(includes, ';'))
|
for(const String& s : Split(includes, ';')) {
|
||||||
|
#ifdef PLATFORM_WIN32 // we need to ignore internal VC++ headers
|
||||||
|
static VectorMap<String, bool> use;
|
||||||
|
int q = use.Find(s);
|
||||||
|
if(q < 0) {
|
||||||
|
q = use.GetCount();
|
||||||
|
use.Add(s, !FileExists(AppendFileName(s, "vcruntime.h")));
|
||||||
|
}
|
||||||
|
if(use[q])
|
||||||
|
#endif
|
||||||
args.Add("-I" + s);
|
args.Add("-I" + s);
|
||||||
|
}
|
||||||
|
|
||||||
if(iquote.GetCount()) // path to real_filename for #include "xxx" handling
|
if(iquote.GetCount()) // path to real_filename for #include "xxx" handling
|
||||||
args.Add("-I" + iquote);
|
args.Add("-I" + iquote);
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue