forked from qt-creator/qt-creator
Introduced ForeachStatementAST and the bits to parse foreach statements when qtMocRun is enabled.
This commit is contained in:
@@ -297,7 +297,7 @@ static inline int classify5(const char *s, bool q) {
|
||||
if (s[2] == 'o') {
|
||||
if (s[3] == 't') {
|
||||
if (s[4] == 's') {
|
||||
return T_SLOTS;
|
||||
return T_Q_SLOTS;
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -627,7 +627,7 @@ static inline int classify7(const char *s, bool q) {
|
||||
if (s[4] == 'a') {
|
||||
if (s[5] == 'l') {
|
||||
if (s[6] == 's') {
|
||||
return T_SIGNALS;
|
||||
return T_Q_SIGNALS;
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -687,7 +687,7 @@ static inline int classify7(const char *s, bool q) {
|
||||
if (s[4] == 'O') {
|
||||
if (s[5] == 'T') {
|
||||
if (s[6] == 'S') {
|
||||
return T_SLOTS;
|
||||
return T_Q_SLOTS;
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -950,7 +950,21 @@ static inline int classify9(const char *s, bool q) {
|
||||
if (s[6] == 'A') {
|
||||
if (s[7] == 'L') {
|
||||
if (s[8] == 'S') {
|
||||
return T_SIGNALS;
|
||||
return T_Q_SIGNALS;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
} else if (s[2] == 'F') {
|
||||
if (s[3] == 'O') {
|
||||
if (s[4] == 'R') {
|
||||
if (s[5] == 'E') {
|
||||
if (s[6] == 'A') {
|
||||
if (s[7] == 'C') {
|
||||
if (s[8] == 'H') {
|
||||
return T_Q_FOREACH;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user