C++: Parse __alignof__

Change-Id: I093c2a786cf8f10de4f05c23f3763ef1300feabd
Reviewed-by: Nikolai Kosjar <nikolai.kosjar@theqtcompany.com>
This commit is contained in:
Orgad Shaneh
2015-08-05 16:07:37 +03:00
committed by Orgad Shaneh
parent f8596d6c63
commit 0e8a0cac47
2 changed files with 17 additions and 0 deletions

View File

@@ -1324,6 +1324,22 @@ static inline int classify11(const char *s, LanguageFeatures features)
}
}
}
} else if (s[3] == 'l') {
if (s[4] == 'i') {
if (s[5] == 'g') {
if (s[6] == 'n') {
if (s[7] == 'o') {
if (s[8] == 'f') {
if (s[9] == '_') {
if (s[10] == '_') {
return T___ALIGNOF__;
}
}
}
}
}
}
}
}
}
}

View File

@@ -286,6 +286,7 @@ enum Kind {
T___VOLATILE__ = T_VOLATILE,
T___ATTRIBUTE = T___ATTRIBUTE__,
T___ALIGNOF__ = T_ALIGNOF,
T_LAST_TOKEN
};