#include "DontModifyStdNamespaceCheck.h"
#include "clang/AST/ASTContext.h"
#include "clang/ASTMatchers/ASTMatchFinder.h"
#include "clang/ASTMatchers/ASTMatchersInternal.h"
usingnamespaceclang;
usingnamespaceclang::ast_matchers;
namespace {
AST_POLYMORPHIC_MATCHER_P(
hasAnyTemplateArgumentIncludingPack,
AST_POLYMORPHIC_SUPPORTED_TYPES(ClassTemplateSpecializationDecl,
TemplateSpecializationType, FunctionDecl),
clang::ast_matchers::internal::Matcher<TemplateArgument>, InnerMatcher) { … }
}
namespace clang::tidy::cert {
void DontModifyStdNamespaceCheck::registerMatchers(MatchFinder *Finder) { … }
}
static const NamespaceDecl *getTopLevelLexicalNamespaceDecl(const Decl *D) { … }
void clang::tidy::cert::DontModifyStdNamespaceCheck::check(
const MatchFinder::MatchResult &Result) { … }