fixed parsing of -std= in compilation database
This commit is contained in:
parent
29815b2dd8
commit
ce11778a20
@ -242,8 +242,11 @@ void ImportProject::FileSettings::parseCommand(const std::string &command)
|
|||||||
undefs.insert(fval);
|
undefs.insert(fval);
|
||||||
else if (F=='I')
|
else if (F=='I')
|
||||||
includePaths.push_back(fval);
|
includePaths.push_back(fval);
|
||||||
else if (F=='s' && fval.compare(0,3,"td=") == 0)
|
else if (F=='s' && fval.compare(0,2,"td") == 0) {
|
||||||
standard = fval.substr(3);
|
++pos;
|
||||||
|
const std::string stdval = readUntil(command, &pos, " ");
|
||||||
|
standard = stdval;
|
||||||
|
}
|
||||||
else if (F == 'i' && fval == "system") {
|
else if (F == 'i' && fval == "system") {
|
||||||
++pos;
|
++pos;
|
||||||
const std::string isystem = readUntil(command, &pos, " ");
|
const std::string isystem = readUntil(command, &pos, " ");
|
||||||
|
Loading…
x
Reference in New Issue
Block a user