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"""
10Clang Enumerations
11==================
12
13This module provides static definitions of enumerations that exist in libclang.
14
15Enumerations are typically defined as a list of tuples. The exported values are
16typically munged into other types or classes at module load time.
17
18All enumerations are centrally defined in this file so they are all grouped
19together and easier to audit. And, maybe even one day this file will be
20automatically 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.
25TokenKinds = [
26    ('PUNCTUATION', 0),
27    ('KEYWORD', 1),
28    ('IDENTIFIER', 2),
29    ('LITERAL', 3),
30    ('COMMENT', 4),
31]
32
33__all__ = ['TokenKinds']
34