[PATCH] D122202: [clang][extract-api] Add struct support
Zixu Wang via Phabricator via cfe-commits
cfe-commits at lists.llvm.org
Mon Mar 21 19:13:50 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 `StructFieldRecord` and `StructRecord` to store API information for structs
- Implement `VisitRecordDecl` in `ExtractAPIVisitor`
- Implement Symbol Graph serialization for struct records.
- Add test case for struct records.
Depends on D121873 <https://reviews.llvm.org/D121873>
Repository:
rG LLVM Github Monorepo
https://reviews.llvm.org/D122202
Files:
clang/include/clang/ExtractAPI/API.h
clang/include/clang/ExtractAPI/DeclarationFragments.h
clang/include/clang/ExtractAPI/Serialization/SymbolGraphSerializer.h
clang/lib/ExtractAPI/API.cpp
clang/lib/ExtractAPI/DeclarationFragments.cpp
clang/lib/ExtractAPI/ExtractAPIConsumer.cpp
clang/lib/ExtractAPI/Serialization/SymbolGraphSerializer.cpp
clang/test/ExtractAPI/struct.c
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D122202.417163.patch
Type: text/x-patch
Size: 19797 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/cfe-commits/attachments/20220322/837c733a/attachment-0001.bin>
More information about the cfe-commits
mailing list