Stop parsing a define with value at the '='. (#937)
This commit is contained in:
parent
b8cd7dbb5c
commit
1c71c789d6
|
@ -216,7 +216,7 @@ void ImportProject::importCompileCommands(std::istream &istr)
|
|||
break;
|
||||
char F = command[pos++];
|
||||
std::string fval;
|
||||
while (pos < command.size() && command[pos] != ' ') {
|
||||
while (pos < command.size() && command[pos] != ' ' && command[pos] != '=') {
|
||||
if (command[pos] != '\\')
|
||||
fval += command[pos];
|
||||
pos++;
|
||||
|
|
Loading…
Reference in New Issue