#include "UnusedUsingDeclsCheck.h"
#include "clang/AST/ASTContext.h"
#include "clang/AST/Decl.h"
#include "clang/ASTMatchers/ASTMatchFinder.h"
#include "clang/Lex/Lexer.h"
usingnamespaceclang::ast_matchers;
namespace clang::tidy::misc {
namespace {
AST_MATCHER_P(DeducedTemplateSpecializationType, refsToTemplatedDecl,
clang::ast_matchers::internal::Matcher<NamedDecl>, DeclMatcher) { … }
}
static bool shouldCheckDecl(const Decl *TargetDecl) { … }
UnusedUsingDeclsCheck::UnusedUsingDeclsCheck(StringRef Name,
ClangTidyContext *Context)
: … { … }
void UnusedUsingDeclsCheck::registerMatchers(MatchFinder *Finder) { … }
void UnusedUsingDeclsCheck::check(const MatchFinder::MatchResult &Result) { … }
void UnusedUsingDeclsCheck::removeFromFoundDecls(const Decl *D) { … }
void UnusedUsingDeclsCheck::onEndOfTranslationUnit() { … }
}