QCORPluginAction.hpp 747 Bytes
Newer Older
1
2
3
4
5
6
7
8
9
10
11
#ifndef COMPILER_QCORPLUGINASTACTION_HPP_
#define COMPILER_QCORPLUGINASTACTION_HPP_

#include "clang/Frontend/CompilerInstance.h"
#include "clang/Frontend/FrontendAction.h"
#include "clang/Frontend/FrontendPluginRegistry.h"
#include "clang/Sema/Sema.h"

using namespace clang;

namespace qcor {
12
13
namespace compiler {
class QCORPluginAction : public PluginASTAction {
14
15
16
17
18
protected:
  std::unique_ptr<ASTConsumer> CreateASTConsumer(CompilerInstance &CI,
                                                 llvm::StringRef) override;
  bool ParseArgs(const CompilerInstance &CI,
                 const std::vector<std::string> &args) override;
19
//   PluginASTAction::ActionType getActionType() override;
20
};
21
} // namespace compiler
22
23
24
} // namespace qcor

#endif