enum TokenKind
Description
Provides a simple uniform namespace for tokens from all C languages.
Declared at: clang/include/clang/Basic/TokenKinds.h:25
Enumerators
| Name | Value | Comment |
|---|---|---|
| unknown | 0 | |
| eof | 1 | |
| eod | 2 | |
| code_completion | 3 | |
| comment | 4 | |
| identifier | 5 | |
| raw_identifier | 6 | |
| numeric_constant | 7 | |
| char_constant | 8 | |
| wide_char_constant | 9 | |
| utf8_char_constant | 10 | |
| utf16_char_constant | 11 | |
| utf32_char_constant | 12 | |
| string_literal | 13 | |
| wide_string_literal | 14 | |
| header_name | 15 | |
| utf8_string_literal | 16 | |
| utf16_string_literal | 17 | |
| utf32_string_literal | 18 | |
| l_square | 19 | |
| r_square | 20 | |
| l_paren | 21 | |
| r_paren | 22 | |
| l_brace | 23 | |
| r_brace | 24 | |
| period | 25 | |
| ellipsis | 26 | |
| amp | 27 | |
| ampamp | 28 | |
| ampequal | 29 | |
| star | 30 | |
| starequal | 31 | |
| plus | 32 | |
| plusplus | 33 | |
| plusequal | 34 | |
| minus | 35 | |
| arrow | 36 | |
| minusminus | 37 | |
| minusequal | 38 | |
| tilde | 39 | |
| exclaim | 40 | |
| exclaimequal | 41 | |
| slash | 42 | |
| slashequal | 43 | |
| percent | 44 | |
| percentequal | 45 | |
| less | 46 | |
| lessless | 47 | |
| lessequal | 48 | |
| lesslessequal | 49 | |
| spaceship | 50 | |
| greater | 51 | |
| greatergreater | 52 | |
| greaterequal | 53 | |
| greatergreaterequal | 54 | |
| caret | 55 | |
| caretequal | 56 | |
| pipe | 57 | |
| pipepipe | 58 | |
| pipeequal | 59 | |
| question | 60 | |
| colon | 61 | |
| semi | 62 | |
| equal | 63 | |
| equalequal | 64 | |
| comma | 65 | |
| hash | 66 | |
| hashhash | 67 | |
| hashat | 68 | |
| periodstar | 69 | |
| arrowstar | 70 | |
| coloncolon | 71 | |
| at | 72 | |
| lesslessless | 73 | |
| greatergreatergreater | 74 | |
| caretcaret | 75 | |
| kw_auto | 76 | |
| kw_break | 77 | |
| kw_case | 78 | |
| kw_char | 79 | |
| kw_const | 80 | |
| kw_continue | 81 | |
| kw_default | 82 | |
| kw_do | 83 | |
| kw_double | 84 | |
| kw_else | 85 | |
| kw_enum | 86 | |
| kw_extern | 87 | |
| kw_float | 88 | |
| kw_for | 89 | |
| kw_goto | 90 | |
| kw_if | 91 | |
| kw_inline | 92 | |
| kw_int | 93 | |
| kw__ExtInt | 94 | |
| kw__BitInt | 95 | |
| kw_long | 96 | |
| kw_register | 97 | |
| kw_restrict | 98 | |
| kw_return | 99 | |
| kw_short | 100 | |
| kw_signed | 101 | |
| kw_sizeof | 102 | |
| kw_static | 103 | |
| kw_struct | 104 | |
| kw_switch | 105 | |
| kw_typedef | 106 | |
| kw_union | 107 | |
| kw_unsigned | 108 | |
| kw_void | 109 | |
| kw_volatile | 110 | |
| kw_while | 111 | |
| kw__Alignas | 112 | |
| kw__Alignof | 113 | |
| kw__Atomic | 114 | |
| kw__Bool | 115 | |
| kw__Complex | 116 | |
| kw__Generic | 117 | |
| kw__Imaginary | 118 | |
| kw__Noreturn | 119 | |
| kw__Static_assert | 120 | |
| kw__Thread_local | 121 | |
| kw___func__ | 122 | |
| kw___objc_yes | 123 | |
| kw___objc_no | 124 | |
| kw_asm | 125 | |
| kw_bool | 126 | |
| kw_catch | 127 | |
| kw_class | 128 | |
| kw_const_cast | 129 | |
| kw_delete | 130 | |
| kw_dynamic_cast | 131 | |
| kw_explicit | 132 | |
| kw_export | 133 | |
| kw_false | 134 | |
| kw_friend | 135 | |
| kw_mutable | 136 | |
| kw_namespace | 137 | |
| kw_new | 138 | |
| kw_operator | 139 | |
| kw_private | 140 | |
| kw_protected | 141 | |
| kw_public | 142 | |
| kw_reinterpret_cast | 143 | |
| kw_static_cast | 144 | |
| kw_template | 145 | |
| kw_this | 146 | |
| kw_throw | 147 | |
| kw_true | 148 | |
| kw_try | 149 | |
| kw_typename | 150 | |
| kw_typeid | 151 | |
| kw_using | 152 | |
| kw_virtual | 153 | |
| kw_wchar_t | 154 | |
| kw_alignas | 155 | |
| kw_alignof | 156 | |
| kw_char16_t | 157 | |
| kw_char32_t | 158 | |
| kw_constexpr | 159 | |
| kw_decltype | 160 | |
| kw_noexcept | 161 | |
| kw_nullptr | 162 | |
| kw_static_assert | 163 | |
| kw_thread_local | 164 | |
| kw_concept | 165 | |
| kw_requires | 166 | |
| kw_co_await | 167 | |
| kw_co_return | 168 | |
| kw_co_yield | 169 | |
| kw_module | 170 | |
| kw_import | 171 | |
| kw_consteval | 172 | |
| kw_constinit | 173 | |
| kw_char8_t | 174 | |
| kw__Float16 | 175 | |
| kw__Accum | 176 | |
| kw__Fract | 177 | |
| kw__Sat | 178 | |
| kw__Decimal32 | 179 | |
| kw__Decimal64 | 180 | |
| kw__Decimal128 | 181 | |
| kw___null | 182 | |
| kw___alignof | 183 | |
| kw___attribute | 184 | |
| kw___builtin_choose_expr | 185 | |
| kw___builtin_offsetof | 186 | |
| kw___builtin_FILE | 187 | |
| kw___builtin_FUNCTION | 188 | |
| kw___builtin_LINE | 189 | |
| kw___builtin_COLUMN | 190 | |
| kw___builtin_source_location | 191 | |
| kw___builtin_types_compatible_p | 192 | |
| kw___builtin_va_arg | 193 | |
| kw___extension__ | 194 | |
| kw___float128 | 195 | |
| kw___ibm128 | 196 | |
| kw___imag | 197 | |
| kw___int128 | 198 | |
| kw___label__ | 199 | |
| kw___real | 200 | |
| kw___thread | 201 | |
| kw___FUNCTION__ | 202 | |
| kw___PRETTY_FUNCTION__ | 203 | |
| kw___auto_type | 204 | |
| kw_typeof | 205 | |
| kw___FUNCDNAME__ | 206 | |
| kw___FUNCSIG__ | 207 | |
| kw_L__FUNCTION__ | 208 | |
| kw_L__FUNCSIG__ | 209 | |
| kw___is_interface_class | 210 | |
| kw___is_sealed | 211 | |
| kw___is_destructible | 212 | |
| kw___is_trivially_destructible | 213 | |
| kw___is_nothrow_destructible | 214 | |
| kw___is_nothrow_assignable | 215 | |
| kw___is_constructible | 216 | |
| kw___is_nothrow_constructible | 217 | |
| kw___is_assignable | 218 | |
| kw___has_nothrow_move_assign | 219 | |
| kw___has_trivial_move_assign | 220 | |
| kw___has_trivial_move_constructor | 221 | |
| kw___has_nothrow_assign | 222 | |
| kw___has_nothrow_copy | 223 | |
| kw___has_nothrow_constructor | 224 | |
| kw___has_trivial_assign | 225 | |
| kw___has_trivial_copy | 226 | |
| kw___has_trivial_constructor | 227 | |
| kw___has_trivial_destructor | 228 | |
| kw___has_virtual_destructor | 229 | |
| kw___is_abstract | 230 | |
| kw___is_aggregate | 231 | |
| kw___is_base_of | 232 | |
| kw___is_class | 233 | |
| kw___is_convertible_to | 234 | |
| kw___is_empty | 235 | |
| kw___is_enum | 236 | |
| kw___is_final | 237 | |
| kw___is_literal | 238 | |
| kw___is_pod | 239 | |
| kw___is_polymorphic | 240 | |
| kw___is_standard_layout | 241 | |
| kw___is_trivial | 242 | |
| kw___is_trivially_assignable | 243 | |
| kw___is_trivially_constructible | 244 | |
| kw___is_trivially_copyable | 245 | |
| kw___is_union | 246 | |
| kw___has_unique_object_representations | 247 | |
| kw___underlying_type | 248 | |
| kw___is_trivially_relocatable | 249 | |
| kw___reference_binds_to_temporary | 250 | |
| kw___is_lvalue_expr | 251 | |
| kw___is_rvalue_expr | 252 | |
| kw___is_arithmetic | 253 | |
| kw___is_floating_point | 254 | |
| kw___is_integral | 255 | |
| kw___is_complete_type | 256 | |
| kw___is_void | 257 | |
| kw___is_array | 258 | |
| kw___is_function | 259 | |
| kw___is_reference | 260 | |
| kw___is_lvalue_reference | 261 | |
| kw___is_rvalue_reference | 262 | |
| kw___is_fundamental | 263 | |
| kw___is_object | 264 | |
| kw___is_scalar | 265 | |
| kw___is_compound | 266 | |
| kw___is_pointer | 267 | |
| kw___is_member_object_pointer | 268 | |
| kw___is_member_function_pointer | 269 | |
| kw___is_member_pointer | 270 | |
| kw___is_const | 271 | |
| kw___is_volatile | 272 | |
| kw___is_signed | 273 | |
| kw___is_unsigned | 274 | |
| kw___is_same | 275 | |
| kw___is_convertible | 276 | |
| kw___array_rank | 277 | |
| kw___array_extent | 278 | |
| kw___private_extern__ | 279 | |
| kw___module_private__ | 280 | |
| kw___declspec | 281 | |
| kw___cdecl | 282 | |
| kw___stdcall | 283 | |
| kw___fastcall | 284 | |
| kw___thiscall | 285 | |
| kw___regcall | 286 | |
| kw___vectorcall | 287 | |
| kw___forceinline | 288 | |
| kw___unaligned | 289 | |
| kw___super | 290 | |
| kw___global | 291 | |
| kw___local | 292 | |
| kw___constant | 293 | |
| kw___private | 294 | |
| kw___generic | 295 | |
| kw___kernel | 296 | |
| kw___read_only | 297 | |
| kw___write_only | 298 | |
| kw___read_write | 299 | |
| kw___builtin_astype | 300 | |
| kw_vec_step | 301 | |
| kw_image1d_t | 302 | |
| kw_image1d_array_t | 303 | |
| kw_image1d_buffer_t | 304 | |
| kw_image2d_t | 305 | |
| kw_image2d_array_t | 306 | |
| kw_image2d_depth_t | 307 | |
| kw_image2d_array_depth_t | 308 | |
| kw_image2d_msaa_t | 309 | |
| kw_image2d_array_msaa_t | 310 | |
| kw_image2d_msaa_depth_t | 311 | |
| kw_image2d_array_msaa_depth_t | 312 | |
| kw_image3d_t | 313 | |
| kw_pipe | 314 | |
| kw_addrspace_cast | 315 | |
| kw___noinline__ | 316 | |
| kw___builtin_omp_required_simd_align | 317 | |
| kw___pascal | 318 | |
| kw___vector | 319 | |
| kw___pixel | 320 | |
| kw___bool | 321 | |
| kw___bf16 | 322 | |
| kw_half | 323 | |
| kw___bridge | 324 | |
| kw___bridge_transfer | 325 | |
| kw___bridge_retained | 326 | |
| kw___bridge_retain | 327 | |
| kw___covariant | 328 | |
| kw___contravariant | 329 | |
| kw___kindof | 330 | |
| kw__Nonnull | 331 | |
| kw__Nullable | 332 | |
| kw__Nullable_result | 333 | |
| kw__Null_unspecified | 334 | |
| kw___ptr64 | 335 | |
| kw___ptr32 | 336 | |
| kw___sptr | 337 | |
| kw___uptr | 338 | |
| kw___w64 | 339 | |
| kw___uuidof | 340 | |
| kw___try | 341 | |
| kw___finally | 342 | |
| kw___leave | 343 | |
| kw___int64 | 344 | |
| kw___if_exists | 345 | |
| kw___if_not_exists | 346 | |
| kw___single_inheritance | 347 | |
| kw___multiple_inheritance | 348 | |
| kw___virtual_inheritance | 349 | |
| kw___interface | 350 | |
| kw___builtin_convertvector | 351 | |
| kw___builtin_bit_cast | 352 | |
| kw___builtin_available | 353 | |
| kw___builtin_sycl_unique_stable_name | 354 | |
| kw___unknown_anytype | 355 | |
| annot_cxxscope | 356 | |
| annot_typename | 357 | |
| annot_template_id | 358 | |
| annot_non_type | 359 | |
| annot_non_type_undeclared | 360 | |
| annot_non_type_dependent | 361 | |
| annot_overload_set | 362 | |
| annot_primary_expr | 363 | |
| annot_decltype | 364 | |
| annot_pragma_unused | 365 | |
| annot_pragma_vis | 366 | |
| annot_pragma_pack | 367 | |
| annot_pragma_parser_crash | 368 | |
| annot_pragma_captured | 369 | |
| annot_pragma_dump | 370 | |
| annot_pragma_msstruct | 371 | |
| annot_pragma_align | 372 | |
| annot_pragma_weak | 373 | |
| annot_pragma_weakalias | 374 | |
| annot_pragma_redefine_extname | 375 | |
| annot_pragma_fp_contract | 376 | |
| annot_pragma_fenv_access | 377 | |
| annot_pragma_fenv_access_ms | 378 | |
| annot_pragma_fenv_round | 379 | |
| annot_pragma_float_control | 380 | |
| annot_pragma_ms_pointers_to_members | 381 | |
| annot_pragma_ms_vtordisp | 382 | |
| annot_pragma_ms_pragma | 383 | |
| annot_pragma_opencl_extension | 384 | |
| annot_attr_openmp | 385 | |
| annot_pragma_openmp | 386 | |
| annot_pragma_openmp_end | 387 | |
| annot_pragma_loop_hint | 388 | |
| annot_pragma_fp | 389 | |
| annot_pragma_attribute | 390 | |
| annot_pragma_riscv | 391 | |
| annot_module_include | 392 | |
| annot_module_begin | 393 | |
| annot_module_end | 394 | |
| annot_header_unit | 395 | |
| NUM_TOKENS | 396 |