#include "UseEqualsDeleteCheck.h"
#include "clang/AST/ASTContext.h"
#include "clang/ASTMatchers/ASTMatchFinder.h"
#include "clang/Lex/Lexer.h"
usingnamespaceclang::ast_matchers;
namespace clang::tidy::modernize {
namespace {
AST_MATCHER(FunctionDecl, hasAnyDefinition) { … }
AST_MATCHER(Decl, isUsed) { … }
AST_MATCHER(CXXMethodDecl, isSpecialFunction) { … }
}
static const char SpecialFunction[] = …;
static const char DeletedNotPublic[] = …;
UseEqualsDeleteCheck::UseEqualsDeleteCheck(StringRef Name,
ClangTidyContext *Context)
: … { … }
void UseEqualsDeleteCheck::storeOptions(ClangTidyOptions::OptionMap &Opts) { … }
void UseEqualsDeleteCheck::registerMatchers(MatchFinder *Finder) { … }
void UseEqualsDeleteCheck::check(const MatchFinder::MatchResult &Result) { … }
}