1 #ifndef Utilities_StaticAnalyzers_FunctionChecker_h
2 #define Utilities_StaticAnalyzers_FunctionChecker_h
3 #include <clang/StaticAnalyzer/Core/Checker.h>
4 #include <clang/StaticAnalyzer/Core/PathSensitive/CheckerContext.h>
5 #include <clang/StaticAnalyzer/Core/BugReporter/BugType.h>
12 class FunctionChecker :
public clang::ento::Checker< clang::ento::check::ASTDecl<clang::CXXMethodDecl>,
13 clang::ento::check::ASTDecl<clang::FunctionDecl>,
14 clang::ento::check::ASTDecl<clang::FunctionTemplateDecl> >
16 mutable clang::OwningPtr< clang::ento::BugType>
BT;
21 void checkASTDecl(
const clang::CXXMethodDecl *CMD, clang::ento::AnalysisManager& mgr,
22 clang::ento::BugReporter &BR)
const ;
23 void checkASTDecl(
const clang::FunctionDecl *FD, clang::ento::AnalysisManager& mgr,
24 clang::ento::BugReporter &BR)
const ;
25 void checkASTDecl(
const clang::FunctionTemplateDecl *TD, clang::ento::AnalysisManager& mgr,
26 clang::ento::BugReporter &BR)
const ;
void checkASTDecl(const clang::CXXMethodDecl *CMD, clang::ento::AnalysisManager &mgr, clang::ento::BugReporter &BR) const
clang::OwningPtr< clang::ento::BugType > BT