Instantiator
Generate c++ template instantiations
Loading...
Searching...
No Matches
ASTBuilderAction Class Reference

Action to compute a single AST of file filename. More...

#include <Actions/ASTBuilderAction.hpp>

Inheritance diagram for ASTBuilderAction:
[legend]
Collaboration diagram for ASTBuilderAction:
[legend]

Public Member Functions

 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
 

Private Attributes

std::unique_ptr< clang::ASTUnit > & AST
 
const clang::tooling::CompilationDatabase & db
 
std::filesystem::path file
 
std::filesystem::path tmpdir
 

Detailed Description

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.

Constructor & Destructor Documentation

◆ 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

Definition at line 32 of file ASTBuilderAction.hpp.

Member Function Documentation

◆ runInvocation()

bool ASTBuilderAction::runInvocation ( std::shared_ptr< clang::CompilerInvocation > Invocation,
clang::FileManager * Files,
std::shared_ptr< clang::PCHContainerOperations > PCHContainerOps,
clang::DiagnosticConsumer * DiagConsumer )
override

Definition at line 12 of file ASTBuilderAction.cpp.

Member Data Documentation

◆ AST

std::unique_ptr<clang::ASTUnit>& ASTBuilderAction::AST
private

Definition at line 26 of file ASTBuilderAction.hpp.

◆ db

const clang::tooling::CompilationDatabase& ASTBuilderAction::db
private

Definition at line 27 of file ASTBuilderAction.hpp.

◆ file

std::filesystem::path ASTBuilderAction::file
private

Definition at line 28 of file ASTBuilderAction.hpp.

◆ tmpdir

std::filesystem::path ASTBuilderAction::tmpdir
private

Definition at line 29 of file ASTBuilderAction.hpp.


The documentation for this class was generated from the following files: