mirror of
https://github.com/ultimatepp/ultimatepp.git
synced 2026-09-05 17:44:55 -06:00
ide: clang related fixes, find in files now trims long lines when putting them to output display array to avoid slowdowns
git-svn-id: svn://ultimatepp.org/upp/trunk@14115 f0d560ea-af0d-0410-9eb7-867de7ffcac7
This commit is contained in:
parent
39355c2646
commit
5941dfdae3
7 changed files with 123 additions and 100 deletions
|
|
@ -141,7 +141,7 @@ INITBLOCK
|
|||
RegisterGlobalConfig(CONFIGNAME);
|
||||
}
|
||||
|
||||
bool Pdb::Create(One<Host> local, const String& exefile, const String& cmdline)
|
||||
bool Pdb::Create(One<Host> local, const String& exefile, const String& cmdline, bool clang_)
|
||||
{
|
||||
STARTUPINFO si;
|
||||
ZeroMemory(&si, sizeof(STARTUPINFO));
|
||||
|
|
@ -154,6 +154,8 @@ bool Pdb::Create(One<Host> local, const String& exefile, const String& cmdline)
|
|||
cl << exefile;
|
||||
if(!IsNull(cmdline))
|
||||
cl << ' ' << cmdline;
|
||||
|
||||
clang = clang_;
|
||||
|
||||
Buffer<char> cmd(cl.GetLength() + 1);
|
||||
memcpy(cmd, cl, cl.GetLength() + 1);
|
||||
|
|
@ -438,10 +440,10 @@ Pdb::~Pdb()
|
|||
Stop();
|
||||
}
|
||||
|
||||
One<Debugger> PdbCreate(One<Host>&& host, const String& exefile, const String& cmdline)
|
||||
One<Debugger> PdbCreate(One<Host>&& host, const String& exefile, const String& cmdline, bool clang)
|
||||
{
|
||||
One<Debugger> dbg;
|
||||
if(!dbg.Create<Pdb>().Create(pick(host), exefile, cmdline))
|
||||
if(!dbg.Create<Pdb>().Create(pick(host), exefile, cmdline, clang))
|
||||
dbg.Clear();
|
||||
return dbg;
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue