#include "UniqueptrResetReleaseCheck.h"
#include "clang/ASTMatchers/ASTMatchFinder.h"
#include "clang/Lex/Lexer.h"
usingnamespaceclang::ast_matchers;
namespace clang::tidy::misc {
UniqueptrResetReleaseCheck::UniqueptrResetReleaseCheck(
StringRef Name, ClangTidyContext *Context)
: … { … }
void UniqueptrResetReleaseCheck::storeOptions(
ClangTidyOptions::OptionMap &Opts) { … }
void UniqueptrResetReleaseCheck::registerPPCallbacks(
const SourceManager &SM, Preprocessor *PP, Preprocessor *ModuleExpanderPP) { … }
void UniqueptrResetReleaseCheck::registerMatchers(MatchFinder *Finder) { … }
namespace {
const Type *getDeleterForUniquePtr(const MatchFinder::MatchResult &Result,
StringRef ID) { … }
bool areDeletersCompatible(const MatchFinder::MatchResult &Result) { … }
}
void UniqueptrResetReleaseCheck::check(const MatchFinder::MatchResult &Result) { … }
}