CMS 3D CMS Logo

FunctionDumper.h
Go to the documentation of this file.
1 #ifndef Utilities_StaticAnalyzers_FunctionDumper_h
2 #define Utilities_StaticAnalyzers_FunctionDumper_h
3 #include <clang/StaticAnalyzer/Core/Checker.h>
4 #include <clang/StaticAnalyzer/Core/PathSensitive/CheckerContext.h>
5 #include <clang/StaticAnalyzer/Core/BugReporter/BugType.h>
6 
7 namespace clangcms {
8 
9 class FunctionDumper : public clang::ento::Checker< clang::ento::check::ASTDecl<clang::CXXMethodDecl>,
10  clang::ento::check::ASTDecl<clang::FunctionDecl> ,
11  clang::ento::check::ASTDecl<clang::FunctionTemplateDecl> >
12 {
13 
14 
15 public:
16 
17  void checkASTDecl(const clang::CXXMethodDecl *CMD, clang::ento::AnalysisManager& mgr,
18  clang::ento::BugReporter &BR) const ;
19 
20  void checkASTDecl(const clang::FunctionDecl *MD, clang::ento::AnalysisManager& mgr,
21  clang::ento::BugReporter &BR) const ;
22 
23  void checkASTDecl(const clang::FunctionTemplateDecl *TD, clang::ento::AnalysisManager& mgr,
24  clang::ento::BugReporter &BR) const ;
25 
26 
27 private:
29 };
30 
31 }
32 #endif
void checkASTDecl(const clang::CXXMethodDecl *CMD, clang::ento::AnalysisManager &mgr, clang::ento::BugReporter &BR) const