[PATCH] D121873: [clang][extract-api] Add enum support

Zixu Wang via Phabricator via cfe-commits cfe-commits at lists.llvm.org
Wed Mar 16 17:52:46 PDT 2022


zixuw created this revision.
Herald added a reviewer: dang.
Herald added a project: All.
zixuw requested review of this revision.
Herald added a project: clang.
Herald added a subscriber: cfe-commits.

Add support for enum records

- Add `EnumConstantRecord` and `EnumRecord` to store API information for enums
- Implement `VisitEnumDecl` in `ExtractAPIVisitor`
- Implement serializatin for enum records and `MemberOf` relationship
- Add test case for enum records
- Few other improvements


Repository:
  rG LLVM Github Monorepo

https://reviews.llvm.org/D121873

Files:
  clang/include/clang/SymbolGraph/API.h
  clang/include/clang/SymbolGraph/DeclarationFragments.h
  clang/include/clang/SymbolGraph/Serialization.h
  clang/lib/SymbolGraph/API.cpp
  clang/lib/SymbolGraph/DeclarationFragments.cpp
  clang/lib/SymbolGraph/ExtractAPIConsumer.cpp
  clang/lib/SymbolGraph/Serialization.cpp
  clang/test/SymbolGraph/enum.c

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D121873.416037.patch
Type: text/x-patch
Size: 24713 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/cfe-commits/attachments/20220317/24a37f15/attachment-0001.bin>


More information about the cfe-commits mailing list