fixed parsing of -std= in compilation database

This commit is contained in:
firewave 2019-03-26 19:00:31 +01:00
parent 29815b2dd8
commit ce11778a20
1 changed files with 5 additions and 2 deletions

View File

@ -242,8 +242,11 @@ void ImportProject::FileSettings::parseCommand(const std::string &command)
undefs.insert(fval);
else if (F=='I')
includePaths.push_back(fval);
else if (F=='s' && fval.compare(0,3,"td=") == 0)
standard = fval.substr(3);
else if (F=='s' && fval.compare(0,2,"td") == 0) {
++pos;
const std::string stdval = readUntil(command, &pos, " ");
standard = stdval;
}
else if (F == 'i' && fval == "system") {
++pos;
const std::string isystem = readUntil(command, &pos, " ");