1 | #===- enumerations.py - Python Enumerations ------------------*- python -*--===# |
2 | # |
3 | # Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions. |
4 | # See https://llvm.org/LICENSE.txt for license information. |
5 | # SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception |
6 | # |
7 | #===------------------------------------------------------------------------===# |
8 | |
9 | """ |
10 | Clang Enumerations |
11 | ================== |
12 | |
13 | This module provides static definitions of enumerations that exist in libclang. |
14 | |
15 | Enumerations are typically defined as a list of tuples. The exported values are |
16 | typically munged into other types or classes at module load time. |
17 | |
18 | All enumerations are centrally defined in this file so they are all grouped |
19 | together and easier to audit. And, maybe even one day this file will be |
20 | automatically generated by scanning the libclang headers! |
21 | """ |
22 | |
23 | # Maps to CXTokenKind. Note that libclang maintains a separate set of token |
24 | # enumerations from the C++ API. |
25 | TokenKinds = [ |
26 | ('PUNCTUATION', 0), |
27 | ('KEYWORD', 1), |
28 | ('IDENTIFIER', 2), |
29 | ('LITERAL', 3), |
30 | ('COMMENT', 4), |
31 | ] |
32 | |
33 | __all__ = ['TokenKinds'] |
34 | |