@@ -81,49 +81,49 @@ IdentifierTable::IdentifierTable(const LangOptions &LangOpts,
8181// Constants for TokenKinds.def
8282namespace {
8383
84- enum TokenKey : unsigned {
85- KEYC99 = 0x1 ,
86- KEYCXX = 0x2 ,
87- KEYCXX11 = 0x4 ,
88- KEYGNU = 0x8 ,
89- KEYMS = 0x10 ,
90- BOOLSUPPORT = 0x20 ,
91- KEYALTIVEC = 0x40 ,
92- KEYNOCXX = 0x80 ,
93- KEYBORLAND = 0x100 ,
94- KEYOPENCLC = 0x200 ,
95- KEYC23 = 0x400 ,
96- KEYNOMS18 = 0x800 ,
97- KEYNOOPENCL = 0x1000 ,
98- WCHARSUPPORT = 0x2000 ,
99- HALFSUPPORT = 0x4000 ,
100- CHAR8SUPPORT = 0x8000 ,
101- KEYOBJC = 0x10000 ,
102- KEYZVECTOR = 0x20000 ,
103- KEYCOROUTINES = 0x40000 ,
104- KEYMODULES = 0x80000 ,
105- KEYCXX20 = 0x100000 ,
106- KEYOPENCLCXX = 0x200000 ,
107- KEYMSCOMPAT = 0x400000 ,
108- KEYSYCL = 0x800000 ,
109- KEYCUDA = 0x1000000 ,
110- KEYHLSL = 0x2000000 ,
111- KEYFIXEDPOINT = 0x4000000 ,
112- KEYMAX = KEYFIXEDPOINT, // The maximum key
113- KEYALLCXX = KEYCXX | KEYCXX11 | KEYCXX20,
114- KEYALL = (KEYMAX | (KEYMAX- 1 )) & ~KEYNOMS18 &
115- ~KEYNOOPENCL // KEYNOMS18 and KEYNOOPENCL are used to exclude.
116- };
117-
118- // / How a keyword is treated in the selected standard. This enum is ordered
119- // / intentionally so that the value that 'wins' is the most 'permissive'.
120- enum KeywordStatus {
121- KS_Unknown, // Not yet calculated. Used when figuring out the status.
122- KS_Disabled, // Disabled
123- KS_Future, // Is a keyword in future standard
124- KS_Extension, // Is an extension
125- KS_Enabled, // Enabled
126- };
84+ enum TokenKey : unsigned {
85+ KEYC99 = 0x1 ,
86+ KEYCXX = 0x2 ,
87+ KEYCXX11 = 0x4 ,
88+ KEYGNU = 0x8 ,
89+ KEYMS = 0x10 ,
90+ BOOLSUPPORT = 0x20 ,
91+ KEYALTIVEC = 0x40 ,
92+ KEYNOCXX = 0x80 ,
93+ KEYBORLAND = 0x100 ,
94+ KEYOPENCLC = 0x200 ,
95+ KEYC23 = 0x400 ,
96+ KEYNOMS18 = 0x800 ,
97+ KEYNOOPENCL = 0x1000 ,
98+ WCHARSUPPORT = 0x2000 ,
99+ HALFSUPPORT = 0x4000 ,
100+ CHAR8SUPPORT = 0x8000 ,
101+ KEYOBJC = 0x10000 ,
102+ KEYZVECTOR = 0x20000 ,
103+ KEYCOROUTINES = 0x40000 ,
104+ KEYMODULES = 0x80000 ,
105+ KEYCXX20 = 0x100000 ,
106+ KEYOPENCLCXX = 0x200000 ,
107+ KEYMSCOMPAT = 0x400000 ,
108+ KEYSYCL = 0x800000 ,
109+ KEYCUDA = 0x1000000 ,
110+ KEYHLSL = 0x2000000 ,
111+ KEYFIXEDPOINT = 0x4000000 ,
112+ KEYMAX = KEYFIXEDPOINT, // The maximum key
113+ KEYALLCXX = KEYCXX | KEYCXX11 | KEYCXX20,
114+ KEYALL = (KEYMAX | (KEYMAX - 1 )) & ~KEYNOMS18 &
115+ ~KEYNOOPENCL // KEYNOMS18 and KEYNOOPENCL are used to exclude.
116+ };
117+
118+ // / How a keyword is treated in the selected standard. This enum is ordered
119+ // / intentionally so that the value that 'wins' is the most 'permissive'.
120+ enum KeywordStatus {
121+ KS_Unknown, // Not yet calculated. Used when figuring out the status.
122+ KS_Disabled, // Disabled
123+ KS_Future, // Is a keyword in future standard
124+ KS_Extension, // Is an extension
125+ KS_Enabled, // Enabled
126+ };
127127
128128} // namespace
129129
0 commit comments