]>
git.proxmox.com Git - ceph.git/blob - ceph/src/boost/libs/wave/src/token_ids.cpp
1 /*=============================================================================
2 Boost.Wave: A Standard compliant C++ preprocessor library
3 The definition of a default set of token identifiers and related
8 Copyright (c) 2001-2012 Hartmut Kaiser. Distributed under the Boost
9 Software License, Version 1.0. (See accompanying file
10 LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.txt)
11 =============================================================================*/
13 #define BOOST_WAVE_SOURCE 1
15 // disable stupid compiler warnings
16 #include <boost/config/warning_disable.hpp>
19 #include <boost/assert.hpp>
20 #include <boost/static_assert.hpp>
22 #include <boost/wave/wave_config.hpp>
23 #include <boost/wave/token_ids.hpp>
25 // this must occur after all of the includes and before any code appears
26 #ifdef BOOST_HAS_ABI_HEADERS
27 #include BOOST_ABI_PREFIX
30 ///////////////////////////////////////////////////////////////////////////////
34 ///////////////////////////////////////////////////////////////////////////////
35 // return a token name
37 get_token_name(token_id tokid
)
39 // Table of token names
41 // Please note that the sequence of token names must match the sequence of
42 // token id's defined in then enum token_id above.
43 static char const *tok_names
[] = {
47 /* 259 */ "ANDASSIGN",
51 /* 263 */ "XORASSIGN",
55 /* 267 */ "DIVIDEASSIGN",
61 /* 273 */ "GREATEREQUAL",
62 /* 274 */ "LEFTBRACE",
64 /* 276 */ "LESSEQUAL",
65 /* 277 */ "LEFTPAREN",
66 /* 278 */ "LEFTBRACKET",
68 /* 280 */ "MINUSASSIGN",
69 /* 281 */ "MINUSMINUS",
71 /* 283 */ "PERCENTASSIGN",
76 /* 288 */ "PLUSASSIGN",
79 /* 291 */ "ARROWSTAR",
80 /* 292 */ "QUESTION_MARK",
81 /* 293 */ "RIGHTBRACE",
82 /* 294 */ "RIGHTPAREN",
83 /* 295 */ "RIGHTBRACKET",
84 /* 296 */ "COLON_COLON",
85 /* 297 */ "SEMICOLON",
86 /* 298 */ "SHIFTLEFT",
87 /* 299 */ "SHIFTLEFTASSIGN",
88 /* 300 */ "SHIFTRIGHT",
89 /* 301 */ "SHIFTRIGHTASSIGN",
92 /* 304 */ "STARASSIGN",
104 /* 316 */ "CONSTCAST",
105 /* 317 */ "CONTINUE",
110 /* 322 */ "DYNAMICCAST",
113 /* 325 */ "EXPLICIT",
125 /* 337 */ "NAMESPACE",
127 /* 339 */ "OPERATOR",
129 /* 341 */ "PROTECTED",
131 /* 343 */ "REGISTER",
132 /* 344 */ "REINTERPRETCAST",
138 /* 350 */ "STATICCAST",
141 /* 353 */ "TEMPLATE",
147 /* 359 */ "TYPENAME",
149 /* 361 */ "UNSIGNED",
153 /* 365 */ "VOLATILE",
156 /* 368 */ "PP_DEFINE",
158 /* 370 */ "PP_IFDEF",
159 /* 371 */ "PP_IFNDEF",
162 /* 374 */ "PP_ENDIF",
163 /* 375 */ "PP_ERROR",
165 /* 377 */ "PP_PRAGMA",
166 /* 378 */ "PP_UNDEF",
167 /* 379 */ "PP_WARNING",
168 /* 380 */ "IDENTIFIER",
169 /* 381 */ "OCTALINT",
170 /* 382 */ "DECIMALINT",
173 /* 385 */ "LONGINTLIT",
174 /* 386 */ "FLOATLIT",
175 /* 387 */ "CCOMMENT",
176 /* 388 */ "CPPCOMMENT",
178 /* 390 */ "STRINGLIT",
179 /* 391 */ "CONTLINE",
183 /* 395 */ "POUND_POUND",
186 /* 398 */ "PP_INCLUDE",
187 /* 399 */ "PP_QHEADER",
188 /* 400 */ "PP_HHEADER",
191 /* 403 */ "PP_NUMBER",
194 /* 404 */ "MSEXT_INT8",
195 /* 405 */ "MSEXT_INT16",
196 /* 406 */ "MSEXT_INT32",
197 /* 407 */ "MSEXT_INT64",
198 /* 408 */ "MSEXT_BASED",
199 /* 409 */ "MSEXT_DECLSPEC",
200 /* 410 */ "MSEXT_CDECL",
201 /* 411 */ "MSEXT_FASTCALL",
202 /* 412 */ "MSEXT_STDCALL",
203 /* 413 */ "MSEXT_TRY",
204 /* 414 */ "MSEXT_EXCEPT",
205 /* 415 */ "MSEXT_FINALLY",
206 /* 416 */ "MSEXT_LEAVE",
207 /* 417 */ "MSEXT_INLINE",
208 /* 418 */ "MSEXT_ASM",
209 /* 419 */ "MSEXT_REGION",
210 /* 420 */ "MSEXT_ENDREGION",
216 /* 424 */ "CHAR16_T",
217 /* 425 */ "CHAR32_T",
218 /* 426 */ "CONSTEXPR",
219 /* 427 */ "DECLTYPE",
220 /* 428 */ "NOEXCEPT",
222 /* 430 */ "STATIC_ASSERT",
223 /* 431 */ "THREADLOCAL",
224 /* 432 */ "RAWSTRINGLIT",
226 /* 433 */ "T_CHAR8_T",
227 /* 434 */ "T_CONCEPT",
228 /* 435 */ "T_CONSTEVAL",
229 /* 436 */ "T_CONSTINIT",
230 /* 437 */ "T_CO_AWAIT",
231 /* 438 */ "T_CO_RETURN",
232 /* 439 */ "T_CO_YIELD",
233 /* 440 */ "T_REQUIRES",
234 /* 441 */ "T_SPACESHIP",
237 // make sure, I have not forgotten any commas (as I did more than once)
239 sizeof(tok_names
)/sizeof(tok_names
[0]) == T_LAST_TOKEN
-T_FIRST_TOKEN
242 unsigned int id
= BASEID_FROM_TOKEN(tokid
)-T_FIRST_TOKEN
;
243 return (id
< T_LAST_TOKEN
-T_FIRST_TOKEN
) ? tok_names
[id
] : "<UnknownToken>";
246 ///////////////////////////////////////////////////////////////////////////////
247 // return a token name
249 get_token_value(token_id tokid
)
251 // Table of token values
253 // Please note that the sequence of token names must match the sequence of
254 // token id's defined in then enum token_id above.
255 static char const *tok_values
[] = {
316 /* 316 */ "const_cast",
317 /* 317 */ "continue",
322 /* 322 */ "dynamic_cast",
325 /* 325 */ "explicit",
337 /* 337 */ "namespace",
339 /* 339 */ "operator",
341 /* 341 */ "protected",
343 /* 343 */ "register",
344 /* 344 */ "reinterpret_cast",
350 /* 350 */ "static_cast",
353 /* 353 */ "template",
359 /* 359 */ "typename",
361 /* 361 */ "unsigned",
365 /* 365 */ "volatile",
379 /* 379 */ "#warning",
380 /* 380 */ "", // identifier
381 /* 381 */ "", // octalint
382 /* 382 */ "", // decimalint
383 /* 383 */ "", // hexlit
384 /* 384 */ "", // intlit
385 /* 385 */ "", // longintlit
386 /* 386 */ "", // floatlit
387 /* 387 */ "", // ccomment
388 /* 388 */ "", // cppcomment
389 /* 389 */ "", // charlit
390 /* 390 */ "", // stringlit
391 /* 391 */ "", // contline
392 /* 392 */ "", // space
393 /* 393 */ "", // space2
398 /* 398 */ "#include",
399 /* 399 */ "#include",
400 /* 400 */ "#include",
403 /* 403 */ "", // pp-number
411 /* 409 */ "__declspec",
413 /* 411 */ "__fastcall",
414 /* 412 */ "__stdcall",
416 /* 414 */ "__except",
417 /* 415 */ "__finally",
419 /* 417 */ "__inline",
422 /* 420 */ "#endregion",
428 /* 424 */ "char16_t",
429 /* 425 */ "char32_t",
430 /* 426 */ "constexpr",
431 /* 427 */ "decltype",
432 /* 428 */ "noexcept",
434 /* 430 */ "static_assert",
435 /* 431 */ "thread_local",
436 /* 432 */ "", // extrawstringlit
440 /* 435 */ "consteval",
441 /* 436 */ "constinit",
442 /* 437 */ "co_await",
443 /* 438 */ "co_return",
444 /* 439 */ "co_yield",
445 /* 440 */ "requires",
449 // make sure, I have not forgotten any commas (as I did more than once)
451 sizeof(tok_values
)/sizeof(tok_values
[0]) == T_LAST_TOKEN
-T_FIRST_TOKEN
454 unsigned int id
= BASEID_FROM_TOKEN(tokid
)-T_FIRST_TOKEN
;
455 return (id
< T_LAST_TOKEN
-T_FIRST_TOKEN
) ? tok_values
[id
] : "<UnknownToken>";
458 ///////////////////////////////////////////////////////////////////////////////
462 // the suffix header occurs after all of the code
463 #ifdef BOOST_HAS_ABI_HEADERS
464 #include BOOST_ABI_SUFFIX