#include "UnusedRaiiCheck.h"
#include "clang/AST/ASTContext.h"
#include "clang/Lex/Lexer.h"
usingnamespaceclang::ast_matchers;
namespace clang::tidy::bugprone {
namespace {
AST_MATCHER(CXXRecordDecl, hasNonTrivialDestructor) { … }
}
void UnusedRaiiCheck::registerMatchers(MatchFinder *Finder) { … }
template <typename T>
void reportDiagnostic(DiagnosticBuilder D, const T *Node, SourceRange SR,
bool DefaultConstruction) { … }
void UnusedRaiiCheck::check(const MatchFinder::MatchResult &Result) { … }
}