[PATCH] D122648: [clang][extractapi] Tie API and serialization to the FrontendAction

Daniel Grumberg via Phabricator via cfe-commits cfe-commits at lists.llvm.org
Tue Mar 29 05:52:52 PDT 2022


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

Make the API records a property of the action instead of the ASTVisitor
so that it can be accessed outside the AST visitation and push back
serialization to the end of the frontend action.

This will allow accessing and modifying the API records outside of the
ASTVisitor, which is a prerequisite for supporting macros.


Repository:
  rG LLVM Github Monorepo

https://reviews.llvm.org/D122648

Files:
  clang/include/clang/ExtractAPI/FrontendActions.h
  clang/lib/ExtractAPI/ExtractAPIConsumer.cpp

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D122648.418851.patch
Type: text/x-patch
Size: 4830 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/cfe-commits/attachments/20220329/e3ceccf4/attachment.bin>


More information about the cfe-commits mailing list