[clang] [InstallAPI] Set InstallAPI as a standalone tool instead of CC1 action (PR #82293)
Juergen Ributzka via cfe-commits
cfe-commits at lists.llvm.org
Tue Feb 20 09:18:42 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 {
----------------
ributzka wrote:
I would move this part into a dedicated header file.
https://github.com/llvm/llvm-project/pull/82293
More information about the cfe-commits
mailing list