Made foreach a keyword when parsing with qtMocRun

This commit is contained in:
Roberto Raggi
2009-07-03 11:00:36 +02:00
parent 3cdd48067c
commit b2df9bddec
3 changed files with 18 additions and 1 deletions

View File

@@ -1435,6 +1435,8 @@ bool Preprocessor::isQtReservedWord(const QByteArray &macroId) const
return true;
else if (size == 7 && macroId.at(0) == 's' && macroId == "signals")
return true;
else if (size == 7 && macroId.at(0) == 'f' && macroId == "foreach")
return true;
else if (size == 5 && macroId.at(0) == 's' && macroId == "slots")
return true;
return false;