Lines Matching full:clang
15 When writing a clang based tool like a Clang Plugin or a standalone tool
18 actions as part of the compilation. To run tools over the AST clang
26 class FindNamedClassAction : public clang::ASTFrontendAction {
28 virtual std::unique_ptr<clang::ASTConsumer> CreateASTConsumer(
29 clang::CompilerInstance &Compiler, llvm::StringRef InFile) {
30 return std::unique_ptr<clang::ASTConsumer>(
46 class FindNamedClassConsumer : public clang::ASTConsumer {
48 virtual void HandleTranslationUnit(clang::ASTContext &Context) {
89 of the Clang AST to drill through to the parts that are interesting for
115 virtual std::unique_ptr<clang::ASTConsumer> CreateASTConsumer(
116 clang::CompilerInstance &Compiler, llvm::StringRef InFile) {
117 return std::unique_ptr<clang::ASTConsumer>(
147 #include "clang/AST/ASTConsumer.h"
148 #include "clang/AST/RecursiveASTVisitor.h"
149 #include "clang/Frontend/CompilerInstance.h"
150 #include "clang/Frontend/FrontendAction.h"
151 #include "clang/Tooling/Tooling.h"
153 using namespace clang;
176 class FindNamedClassConsumer : public clang::ASTConsumer {
181 virtual void HandleTranslationUnit(clang::ASTContext &Context) {
188 class FindNamedClassAction : public clang::ASTFrontendAction {
190 virtual std::unique_ptr<clang::ASTConsumer> CreateASTConsumer(
191 clang::CompilerInstance &Compiler, llvm::StringRef InFile) {
192 return std::unique_ptr<clang::ASTConsumer>(
199 clang::tooling::runToolOnCode(new FindNamedClassAction, argv[1]);