#include "SmartPtrArrayMismatchCheck.h"
#include "../utils/ASTUtils.h"
#include "clang/ASTMatchers/ASTMatchFinder.h"
#include "clang/Lex/Lexer.h"
usingnamespaceclang::ast_matchers;
namespace clang::tidy::bugprone {
namespace {
constexpr char ConstructExprN[] = …;
constexpr char NewExprN[] = …;
constexpr char ConstructorN[] = …;
bool isInSingleDeclStmt(const DeclaratorDecl *D) { … }
const DeclaratorDecl *getConstructedVarOrField(const Expr *FoundConstructExpr,
ASTContext &Ctx) { … }
}
const char SmartPtrArrayMismatchCheck::PointerTypeN[] = …;
SmartPtrArrayMismatchCheck::SmartPtrArrayMismatchCheck(
StringRef Name, ClangTidyContext *Context, StringRef SmartPointerName)
: … { … }
void SmartPtrArrayMismatchCheck::storeOptions(
ClangTidyOptions::OptionMap &Opts) { … }
void SmartPtrArrayMismatchCheck::registerMatchers(MatchFinder *Finder) { … }
void SmartPtrArrayMismatchCheck::check(const MatchFinder::MatchResult &Result) { … }
}