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

Zixu Wang via Phabricator via cfe-commits cfe-commits at lists.llvm.org
Tue Mar 29 11:30:44 PDT 2022


zixuw added a comment.

Mostly LGTM after addressing the inline comments.



================
Comment at: clang/include/clang/ExtractAPI/FrontendActions.h:42-58
   /// Prepare to execute the action on the given CompilerInstance.
   ///
   /// This is called before executing the action on any inputs. This generates a
   /// single header that includes all of CI's inputs and replaces CI's input
   /// list with it before actually executing the action.
   bool PrepareToExecuteAction(CompilerInstance &CI) override;
 
----------------
Should these methods be private?


================
Comment at: clang/lib/ExtractAPI/ExtractAPIConsumer.cpp:335
+  // target triple, let's create the APISet before anyone uses it.
+  API = std::make_unique<APISet>(CI.getTarget().getTriple(), CI.getLangOpts());
+
----------------
Need rebase to pull in the `Language` fix D122495


Repository:
  rG LLVM Github Monorepo

CHANGES SINCE LAST ACTION
  https://reviews.llvm.org/D122648/new/

https://reviews.llvm.org/D122648



More information about the cfe-commits mailing list