enumerations.py 1.1 KB

123456789101112131415161718192021222324252627282930313233
  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. Clang Enumerations
  10. ==================
  11. This module provides static definitions of enumerations that exist in libclang.
  12. Enumerations are typically defined as a list of tuples. The exported values are
  13. typically munged into other types or classes at module load time.
  14. All enumerations are centrally defined in this file so they are all grouped
  15. together and easier to audit. And, maybe even one day this file will be
  16. automatically generated by scanning the libclang headers!
  17. """
  18. # Maps to CXTokenKind. Note that libclang maintains a separate set of token
  19. # enumerations from the C++ API.
  20. TokenKinds = [
  21. ('PUNCTUATION', 0),
  22. ('KEYWORD', 1),
  23. ('IDENTIFIER', 2),
  24. ('LITERAL', 3),
  25. ('COMMENT', 4),
  26. ]
  27. __all__ = ['TokenKinds']