clang 23.0.0git
TUSummaryExtractorFrontendAction.h
Go to the documentation of this file.
1//===- TUSummaryExtractorFrontendAction.h -----------------------*- C++ -*-===//
2//
3// Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions.
4// See https://llvm.org/LICENSE.txt for license information.
5// SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception
6//
7//===----------------------------------------------------------------------===//
8
9#ifndef LLVM_CLANG_SCALABLESTATICANALYSISFRAMEWORK_FRONTEND_TUSUMMARYEXTRACTORFRONTENDACTION_H
10#define LLVM_CLANG_SCALABLESTATICANALYSISFRAMEWORK_FRONTEND_TUSUMMARYEXTRACTORFRONTENDACTION_H
11
13#include <memory>
14
15namespace clang::ssaf {
16
17/// Wraps the existing \c FrontendAction and injects the extractor
18/// \c ASTConsumers into the pipeline after the ASTConsumers of the wrapped
19/// action.
21public:
23 std::unique_ptr<FrontendAction> WrappedAction);
25
26protected:
27 std::unique_ptr<ASTConsumer> CreateASTConsumer(CompilerInstance &CI,
28 StringRef InFile) override;
29};
30
31} // namespace clang::ssaf
32
33#endif // LLVM_CLANG_SCALABLESTATICANALYSISFRAMEWORK_FRONTEND_TUSUMMARYEXTRACTORFRONTENDACTION_H
Defines the clang::FrontendAction interface and various convenience abstract classes (clang::ASTFront...
CompilerInstance - Helper class for managing a single instance of the Clang compiler.
WrapperFrontendAction(std::unique_ptr< FrontendAction > WrappedAction)
Construct a WrapperFrontendAction from an existing action, taking ownership of it.
std::unique_ptr< FrontendAction > WrappedAction
std::unique_ptr< ASTConsumer > CreateASTConsumer(CompilerInstance &CI, StringRef InFile) override
Create the AST consumer object for this action, if supported.
TUSummaryExtractorFrontendAction(std::unique_ptr< FrontendAction > WrappedAction)