Action to compute a single AST of file filename.
More...
#include <Actions/ASTBuilderAction.hpp>
|
| | ASTBuilderAction (std::unique_ptr< clang::ASTUnit > &AST, const clang::tooling::CompilationDatabase &db, const std::filesystem::path &filename, const std::filesystem::path &tmpdir) |
| |
| bool | runInvocation (std::shared_ptr< clang::CompilerInvocation > Invocation, clang::FileManager *Files, std::shared_ptr< clang::PCHContainerOperations > PCHContainerOps, clang::DiagnosticConsumer *DiagConsumer) override |
| |
|
| std::unique_ptr< clang::ASTUnit > & | AST |
| |
| const clang::tooling::CompilationDatabase & | db |
| |
| std::filesystem::path | file |
| |
| std::filesystem::path | tmpdir |
| |
Action to compute a single AST of file filename.
The action first looks if the AST needs to be reparsed or if it can be deserialized from disk.
Definition at line 24 of file ASTBuilderAction.hpp.
◆ ASTBuilderAction()
| ASTBuilderAction::ASTBuilderAction |
( |
std::unique_ptr< clang::ASTUnit > & | AST, |
|
|
const clang::tooling::CompilationDatabase & | db, |
|
|
const std::filesystem::path & | filename, |
|
|
const std::filesystem::path & | tmpdir ) |
|
inline |
◆ runInvocation()
| bool ASTBuilderAction::runInvocation |
( |
std::shared_ptr< clang::CompilerInvocation > | Invocation, |
|
|
clang::FileManager * | Files, |
|
|
std::shared_ptr< clang::PCHContainerOperations > | PCHContainerOps, |
|
|
clang::DiagnosticConsumer * | DiagConsumer ) |
|
override |
◆ AST
| std::unique_ptr<clang::ASTUnit>& ASTBuilderAction::AST |
|
private |
◆ db
| const clang::tooling::CompilationDatabase& ASTBuilderAction::db |
|
private |
◆ file
| std::filesystem::path ASTBuilderAction::file |
|
private |
◆ tmpdir
| std::filesystem::path ASTBuilderAction::tmpdir |
|
private |
The documentation for this class was generated from the following files: