[clang] [InstallAPI] Set InstallAPI as a standalone tool instead of CC1 action (PR #82293)

Cyndy Ishida via cfe-commits cfe-commits at lists.llvm.org
Tue Feb 20 10:55:23 PST 2024


================
@@ -35,19 +36,19 @@ struct InstallAPIContext {
   /// Active target triple to parse.
   llvm::Triple TargetTriple{};
 
-  /// Output stream to write TextAPI file to.
-  std::unique_ptr<llvm::raw_pwrite_stream> OS = nullptr;
-
-  /// DiagnosticsEngine to report errors.
-  llvm::IntrusiveRefCntPtr<DiagnosticsEngine> Diags = nullptr;
-
   /// File Path of output location.
   StringRef OutputLoc{};
 
   /// What encoding to write output as.
   llvm::MachO::FileType FT = llvm::MachO::FileType::TBD_V5;
 };
 
+class InstallAPIAction : public ASTFrontendAction {
----------------
cyndyishida wrote:

Removed this entirely for now. Will add back in follow-up where the header input processing + frontend are hooked together. 

https://github.com/llvm/llvm-project/pull/82293


More information about the cfe-commits mailing list