From 484d4dc26e00b2511ed1f09524803121e2374f60 Mon Sep 17 00:00:00 2001 From: Christian Kamm Date: Mon, 17 Sep 2012 13:34:36 +0200 Subject: C++11: Add the alignof and alignas tokens. Change-Id: I7f60057953787b3300aafa4d3f230f10b1e9a50f Reviewed-by: hjk --- src/libs/3rdparty/cplusplus/Keywords.cpp | 20 ++++++++++++++++++++ 1 file changed, 20 insertions(+) (limited to 'src/libs/3rdparty/cplusplus/Keywords.cpp') diff --git a/src/libs/3rdparty/cplusplus/Keywords.cpp b/src/libs/3rdparty/cplusplus/Keywords.cpp index cac51a4fd68..1da78381ac0 100644 --- a/src/libs/3rdparty/cplusplus/Keywords.cpp +++ b/src/libs/3rdparty/cplusplus/Keywords.cpp @@ -573,6 +573,26 @@ static inline int classify7(const char *s, bool q, bool x) { } } } + else if (x && s[0] == 'a') { + if (s[1] == 'l') { + if (s[2] == 'i') { + if (s[3] == 'g') { + if (s[4] == 'n') { + if (s[5] == 'a') { + if (s[6] == 's') { + return T_ALIGNAS; + } + } + else if (s[5] == 'o') { + if (s[6] == 'f') { + return T_ALIGNOF; + } + } + } + } + } + } + } else if (s[0] == 'd') { if (s[1] == 'e') { if (s[2] == 'f') { -- cgit v1.2.3