6 #ifndef Utilities_StaticAnalyzers_UsingNamespace_h
7 #define Utilities_StaticAnalyzers_UsingNamespace_h
9 #include <clang/StaticAnalyzer/Core/Checker.h>
10 #include <clang/StaticAnalyzer/Core/PathSensitive/CheckerContext.h>
11 #include <clang/AST/DeclCXX.h>
14 class UsingNamespace :
public clang::ento::Checker< clang::ento::check::ASTDecl <clang::UsingDirectiveDecl>,clang::ento::check::ASTDecl <clang::UsingDecl> >
17 void checkASTDecl (
const clang::UsingDirectiveDecl *
D, clang::ento::AnalysisManager &Mgr, clang::ento::BugReporter &BR)
const;
18 void checkASTDecl (
const clang::UsingDecl *D, clang::ento::AnalysisManager &Mgr, clang::ento::BugReporter &BR)
const;
20 bool isDeclOK(
const clang::NamedDecl *D, clang::ento::BugReporter &BR)
const;
21 void reportBug(
const char* bug,
const clang::Decl *D, clang::ento::BugReporter &BR)
const;
void reportBug(const char *bug, const clang::Decl *D, clang::ento::BugReporter &BR) const
bool isDeclOK(const clang::NamedDecl *D, clang::ento::BugReporter &BR) const
void checkASTDecl(const clang::UsingDirectiveDecl *D, clang::ento::AnalysisManager &Mgr, clang::ento::BugReporter &BR) const
DecomposeProduct< arg, typename Div::arg > D