forked from qt-creator/qt-creator
Made foreach a keyword when parsing with qtMocRun
This commit is contained in:
@@ -1435,6 +1435,8 @@ bool Preprocessor::isQtReservedWord(const QByteArray ¯oId) 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;
|
||||
|
||||
Reference in New Issue
Block a user