#include "NewDeleteOverloadsCheck.h"
#include "clang/AST/ASTContext.h"
#include "clang/ASTMatchers/ASTMatchFinder.h"
usingnamespaceclang::ast_matchers;
namespace clang::tidy::misc {
namespace {
AST_MATCHER(FunctionDecl, isPlacementOverload) { … }
OverloadedOperatorKind getCorrespondingOverload(const FunctionDecl *FD) { … }
const char *getOperatorName(OverloadedOperatorKind K) { … }
bool areCorrespondingOverloads(const FunctionDecl *LHS,
const FunctionDecl *RHS) { … }
bool hasCorrespondingOverloadInBaseClass(const CXXMethodDecl *MD,
const CXXRecordDecl *RD = nullptr) { … }
}
void NewDeleteOverloadsCheck::registerMatchers(MatchFinder *Finder) { … }
void NewDeleteOverloadsCheck::check(const MatchFinder::MatchResult &Result) { … }
void NewDeleteOverloadsCheck::onEndOfTranslationUnit() { … }
}