CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
ClassDumper.h
Go to the documentation of this file.
1 #ifndef Utilities_StaticAnalyzers_MemberDumper_h
2 #define Utilities_StaticAnalyzers_MemberDumper_h
3 #include <clang/AST/DeclCXX.h>
4 #include <clang/AST/Decl.h>
5 #include <clang/AST/DeclTemplate.h>
6 #include <clang/AST/StmtVisitor.h>
7 #include <clang/AST/ParentMap.h>
8 #include <clang/Analysis/CFGStmtMap.h>
9 #include <llvm/Support/SaveAndRestore.h>
10 #include <clang/StaticAnalyzer/Core/PathSensitive/AnalysisManager.h>
11 #include <clang/StaticAnalyzer/Core/Checker.h>
12 #include <clang/StaticAnalyzer/Core/BugReporter/BugReporter.h>
13 #include <clang/StaticAnalyzer/Core/BugReporter/BugType.h>
14 #include <llvm/ADT/SmallString.h>
15 
16 #include "CmsException.h"
17 #include "CmsSupport.h"
18 
19 namespace clangcms {
20 
21 class ClassDumper : public clang::ento::Checker<clang::ento::check::ASTDecl<clang::CXXRecordDecl> > {
22  mutable clang::OwningPtr< clang::ento::BugType> BT;
23 
24 public:
25  void checkASTDecl(const clang::CXXRecordDecl *CRD, clang::ento::AnalysisManager& mgr,
26  clang::ento::BugReporter &BR, std::string tname ) const ;
27 
28 private:
30 
31 };
32 
33 class ClassDumperCT : public clang::ento::Checker<clang::ento::check::ASTDecl<clang::ClassTemplateDecl> > {
34  mutable clang::OwningPtr< clang::ento::BugType> BT;
35 
36 public:
37 
38  void checkASTDecl(const clang::ClassTemplateDecl *TD, clang::ento::AnalysisManager& mgr,
39  clang::ento::BugReporter &BR ) const ;
40 
41 private:
43 
44 };
45 
46 class ClassDumperFT : public clang::ento::Checker<clang::ento::check::ASTDecl<clang::FunctionTemplateDecl> > {
47  mutable clang::OwningPtr< clang::ento::BugType> BT;
48 
49 public:
50 
51  void checkASTDecl(const clang::FunctionTemplateDecl *TD, clang::ento::AnalysisManager& mgr,
52  clang::ento::BugReporter &BR ) const ;
53 
54 private:
56 
57 };
58 
59 class ClassDumperInherit : public clang::ento::Checker<clang::ento::check::ASTDecl<clang::CXXRecordDecl> > {
60  mutable clang::OwningPtr< clang::ento::BugType> BT;
61 
62 public:
63  void checkASTDecl(const clang::CXXRecordDecl *CRD, clang::ento::AnalysisManager& mgr,
64  clang::ento::BugReporter &BR ) const ;
65 
66 private:
68 
69 };
70 
71 
72 }
73 #endif
void checkASTDecl(const clang::FunctionTemplateDecl *TD, clang::ento::AnalysisManager &mgr, clang::ento::BugReporter &BR) const
clang::OwningPtr< clang::ento::BugType > BT
Definition: ClassDumper.h:34
void checkASTDecl(const clang::CXXRecordDecl *CRD, clang::ento::AnalysisManager &mgr, clang::ento::BugReporter &BR, std::string tname) const
clang::OwningPtr< clang::ento::BugType > BT
Definition: ClassDumper.h:60
void checkASTDecl(const clang::ClassTemplateDecl *TD, clang::ento::AnalysisManager &mgr, clang::ento::BugReporter &BR) const
CmsException m_exception
Definition: ClassDumper.h:55
clang::OwningPtr< clang::ento::BugType > BT
Definition: ClassDumper.h:47
void checkASTDecl(const clang::CXXRecordDecl *CRD, clang::ento::AnalysisManager &mgr, clang::ento::BugReporter &BR) const
CmsException m_exception
Definition: ClassDumper.h:29
clang::OwningPtr< clang::ento::BugType > BT
Definition: ClassDumper.h:22
CmsException m_exception
Definition: ClassDumper.h:42