Fix Token::Match pattern

This commit is contained in:
Daniel Marjamäki 2018-04-05 15:47:25 +02:00
parent e5db23fff3
commit 4836df9b1d
1 changed files with 1 additions and 1 deletions

View File

@ -199,7 +199,7 @@ void ImportProject::importCompileCommands(std::istream &istr)
values[key.substr(1, key.size() - 2U)] = value.substr(1, value.size() - 2U); values[key.substr(1, key.size() - 2U)] = value.substr(1, value.size() - 2U);
} }
else if (Token::Match(tok, "%str : [ %str%") && tok->str() == "\"arguments\"") { else if (Token::Match(tok, "%str% : [ %str%") && tok->str() == "\"arguments\"") {
std::string cmd; std::string cmd;
tok = tok->tokAt(2); tok = tok->tokAt(2);
while (Token::Match(tok, ",|[ %str%")) { while (Token::Match(tok, ",|[ %str%")) {