Instantiator
Generate c++ template instantiations
Loading...
Searching...
No Matches
AllASTBuilderAction.hpp
Go to the documentation of this file.
1#ifndef ASTBUILDER_ACTION_HPP_
2#define ASTBUILDER_ACTION_HPP_
3
4#include <memory>
5#include <vector>
6
7#include "clang/Frontend/ASTUnit.h"
8#include "clang/Frontend/CompilerInstance.h"
9#include "clang/Frontend/CompilerInvocation.h"
10#include "clang/Serialization/PCHContainerOperations.h"
11#include "clang/Tooling/Tooling.h"
12
13// forward declaration
14namespace clang {
15class FileManager;
16class DiagnosticConsumer;
17} // namespace clang
18
24class AllASTBuilderAction : public clang::tooling::ToolAction
25{
26 std::vector<std::unique_ptr<clang::ASTUnit>>& ASTs;
27
28public:
29 AllASTBuilderAction(std::vector<std::unique_ptr<clang::ASTUnit>>& ASTs)
30 : ASTs(ASTs)
31 {}
32
33 bool runInvocation(std::shared_ptr<clang::CompilerInvocation> Invocation,
34 clang::FileManager* Files,
35 std::shared_ptr<clang::PCHContainerOperations> PCHContainerOps,
36 clang::DiagnosticConsumer* DiagConsumer) override;
37};
38
39#endif
Action to compute all ASTs.
AllASTBuilderAction(std::vector< std::unique_ptr< clang::ASTUnit > > &ASTs)
std::vector< std::unique_ptr< clang::ASTUnit > > & ASTs
bool runInvocation(std::shared_ptr< clang::CompilerInvocation > Invocation, clang::FileManager *Files, std::shared_ptr< clang::PCHContainerOperations > PCHContainerOps, clang::DiagnosticConsumer *DiagConsumer) override