Lines Matching full:clang
5 // This file containts a clang tool to update base::Bind() callers:
13 #include "clang/AST/ASTContext.h"
14 #include "clang/ASTMatchers/ASTMatchers.h"
15 #include "clang/ASTMatchers/ASTMatchersMacros.h"
16 #include "clang/ASTMatchers/ASTMatchFinder.h"
17 #include "clang/Basic/SourceManager.h"
18 #include "clang/Frontend/FrontendActions.h"
19 #include "clang/Lex/Lexer.h"
20 #include "clang/Tooling/CommonOptionsParser.h"
21 #include "clang/Tooling/Refactoring.h"
22 #include "clang/Tooling/Tooling.h"
26 using namespace clang::ast_matchers;
27 using clang::tooling::CommonOptionsParser;
28 using Replacements = std::vector<clang::tooling::Replacement>;
60 auto* target = result.Nodes.getNodeAs<clang::CXXMemberCallExpr>("target");
61 auto* member = llvm::cast<clang::MemberExpr>(target->getCallee());
63 auto range = clang::CharSourceRange::getTokenRange(
84 clang::tooling::ClangTool tool(options.getCompilations(),
88 std::vector<clang::tooling::Replacement> replacements;
95 std::unique_ptr<clang::tooling::FrontendActionFactory> factory =
96 clang::tooling::newFrontendActionFactory(&match_finder);
101 // Serialization format is documented in tools/clang/scripts/run_tool.py