#include "ProBoundsArrayToPointerDecayCheck.h"
#include "clang/AST/ASTContext.h"
#include "clang/AST/ParentMapContext.h"
#include "clang/ASTMatchers/ASTMatchFinder.h"
#include "clang/ASTMatchers/ASTMatchers.h"
usingnamespaceclang::ast_matchers;
namespace clang::tidy::cppcoreguidelines {
namespace {
AST_MATCHER_P(CXXForRangeStmt, hasRangeBeginEndStmt,
ast_matchers::internal::Matcher<DeclStmt>, InnerMatcher) { … }
AST_MATCHER(Stmt, isInsideOfRangeBeginEndStmt) { … }
AST_MATCHER_P(Expr, hasParentIgnoringImpCasts,
ast_matchers::internal::Matcher<Expr>, InnerMatcher) { … }
}
void ProBoundsArrayToPointerDecayCheck::registerMatchers(MatchFinder *Finder) { … }
void ProBoundsArrayToPointerDecayCheck::check(
const MatchFinder::MatchResult &Result) { … }
}