CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
FunctionDumper.h
Go to the documentation of this file.
1 #ifndef Utilities_StaticAnalyzers_FunctionDumper_h
2 #define Utilities_StaticAnalyzers_FunctionDumper_h
3 #include <clang/AST/DeclCXX.h>
4 #include <clang/AST/ExprCXX.h>
5 #include <clang/AST/Decl.h>
6 #include <clang/AST/DeclTemplate.h>
7 #include <clang/AST/StmtVisitor.h>
8 #include <clang/AST/ParentMap.h>
9 #include <clang/Analysis/CFGStmtMap.h>
10 #include <clang/Analysis/CallGraph.h>
11 #include <llvm/Support/SaveAndRestore.h>
12 #include <clang/StaticAnalyzer/Core/PathSensitive/AnalysisManager.h>
13 #include <clang/StaticAnalyzer/Core/PathSensitive/CallEvent.h>
14 #include <clang/StaticAnalyzer/Core/Checker.h>
15 #include <clang/StaticAnalyzer/Core/BugReporter/BugReporter.h>
16 #include <clang/StaticAnalyzer/Core/BugReporter/BugType.h>
17 #include <llvm/ADT/SmallString.h>
18 
19 #include "CmsException.h"
20 #include "CmsSupport.h"
21 
22 namespace clangcms {
23 
24 class FunctionDumper : public clang::ento::Checker< clang::ento::check::ASTDecl<clang::CXXMethodDecl>,
25  clang::ento::check::ASTDecl<clang::FunctionDecl> ,
26  clang::ento::check::ASTDecl<clang::FunctionTemplateDecl> >
27 {
28 
29 
30 public:
31 
32  void checkASTDecl(const clang::CXXMethodDecl *CMD, clang::ento::AnalysisManager& mgr,
33  clang::ento::BugReporter &BR) const ;
34 
35  void checkASTDecl(const clang::FunctionDecl *MD, clang::ento::AnalysisManager& mgr,
36  clang::ento::BugReporter &BR) const ;
37 
38  void checkASTDecl(const clang::FunctionTemplateDecl *TD, clang::ento::AnalysisManager& mgr,
39  clang::ento::BugReporter &BR) const ;
40 
41 
42 private:
44 };
45 
46 }
47 #endif
void checkASTDecl(const clang::CXXMethodDecl *CMD, clang::ento::AnalysisManager &mgr, clang::ento::BugReporter &BR) const