parent
84bdabacf8
commit
4a7f923fca
|
@ -229,13 +229,11 @@ void ImportProject::importCompileCommands(std::istream &istr)
|
||||||
if (command[pos] != '\\') {
|
if (command[pos] != '\\') {
|
||||||
defval += command[pos];
|
defval += command[pos];
|
||||||
escape = false;
|
escape = false;
|
||||||
}
|
} else {
|
||||||
else {
|
|
||||||
if (escape) {
|
if (escape) {
|
||||||
defval += '\\';
|
defval += '\\';
|
||||||
escape = false;
|
escape = false;
|
||||||
}
|
} else {
|
||||||
else {
|
|
||||||
escape = true;
|
escape = true;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -245,8 +243,7 @@ void ImportProject::importCompileCommands(std::istream &istr)
|
||||||
if (!defval.empty())
|
if (!defval.empty())
|
||||||
fs.defines += defval;
|
fs.defines += defval;
|
||||||
fs.defines += ';';
|
fs.defines += ';';
|
||||||
}
|
} else if (F=='U')
|
||||||
else if (F=='U')
|
|
||||||
fs.undefs.insert(fval);
|
fs.undefs.insert(fval);
|
||||||
else if (F=='I')
|
else if (F=='I')
|
||||||
fs.includePaths.push_back(fval);
|
fs.includePaths.push_back(fval);
|
||||||
|
|
Loading…
Reference in New Issue