Scarab
2.8.1
Project 8 C++ Utility Library
library
external
pybind11
tools
clang
enumerations.py
Go to the documentation of this file.
1
#===- enumerations.py - Python Enumerations ------------------*- python -*--===#
2
#
3
# The LLVM Compiler Infrastructure
4
#
5
# This file is distributed under the University of Illinois Open Source
6
# License. See LICENSE.TXT for details.
7
#
8
#===------------------------------------------------------------------------===#
9
10
"""
11
Clang Enumerations
12
==================
13
14
This module provides static definitions of enumerations that exist in libclang.
15
16
Enumerations are typically defined as a list of tuples. The exported values are
17
typically munged into other types or classes at module load time.
18
19
All enumerations are centrally defined in this file so they are all grouped
20
together and easier to audit. And, maybe even one day this file will be
21
automatically generated by scanning the libclang headers!
22
"""
23
24
# Maps to CXTokenKind. Note that libclang maintains a separate set of token
25
# enumerations from the C++ API.
26
TokenKinds = [
27
(
'PUNCTUATION'
, 0),
28
(
'KEYWORD'
, 1),
29
(
'IDENTIFIER'
, 2),
30
(
'LITERAL'
, 3),
31
(
'COMMENT'
, 4),
32
]
33
34
__all__ = [
'TokenKinds'
]
Generated by
1.8.13