12 #include "clang/ASTMatchers/ASTMatchFinder.h"
13 #include "clang/ASTMatchers/ASTMatchers.h"
18 using namespace ast_matchers;
21 const Stmt &Statement) {
22 return selectFirst<const FunctionDecl>(
23 "function", match(stmt(hasAncestor(functionDecl().bind(
"function"))),
const FunctionDecl * getSurroundingFunction(ASTContext &Context, const Stmt &Statement)
ClangTidyContext & Context