llvm-project/clang-tools-extra/unittests/clang-doc
Brett Wilson eaa7b324d5 [clang-doc] Add support for explicitly typed enums
Add support for explicitly typed enums:
  enum Foo : unsigned { ... };
to the internal representation and to the YAML output.

Add support for getting the value of an enum constant, as well as accessing the original expression that produced it. This changes the YAML output of enums from an array of strings for the enum members to an array of dictionaries. These dictionaries now report the name, value, and original expression.

The markdown and HTML outputs are unchanged, they still output the name from the new enhanced internal schema.

Reviewed By: paulkirth

Differential Revision: https://reviews.llvm.org/D134055
2022-09-19 21:54:41 +00:00
..
BitcodeTest.cpp [clang-doc] Read docstrings for record members 2022-08-11 17:14:15 +00:00
CMakeLists.txt [OpenMP] "UnFix" layering problem with FrontendOpenMP 2020-04-07 14:41:18 -05:00
ClangDocTest.cpp [clang-doc] Read docstrings for record members 2022-08-11 17:14:15 +00:00
ClangDocTest.h [clang-doc] Serialize inherited attributes and methods 2019-08-16 00:10:49 +00:00
GeneratorTest.cpp [clang-doc] Sort index elements case insensitive 2019-08-15 23:32:12 +00:00
HTMLGeneratorTest.cpp [clang-doc] Improving Markdown Output 2020-03-06 17:37:08 -08:00
MDGeneratorTest.cpp [clang-doc] Improving Markdown Output 2020-03-06 17:37:08 -08:00
MergeTest.cpp [clang-doc] Always emit the TagType for RecordInfo 2022-08-12 18:39:20 +00:00
SerializeTest.cpp [clang-doc] Add support for explicitly typed enums 2022-09-19 21:54:41 +00:00
YAMLGeneratorTest.cpp [clang-doc] Add support for explicitly typed enums 2022-09-19 21:54:41 +00:00