Commit 0e8a0cac authored by Orgad Shaneh's avatar Orgad Shaneh Committed by Orgad Shaneh

C++: Parse __alignof__

Change-Id: I093c2a786cf8f10de4f05c23f3763ef1300feabd
Reviewed-by: default avatarNikolai Kosjar <nikolai.kosjar@theqtcompany.com>
parent f8596d6c
......@@ -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__;
}
}
}
}
}
}
}
}
}
}
......
......@@ -286,6 +286,7 @@ enum Kind {
T___VOLATILE__ = T_VOLATILE,
T___ATTRIBUTE = T___ATTRIBUTE__,
T___ALIGNOF__ = T_ALIGNOF,
T_LAST_TOKEN
};
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment