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 #include <string>
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 
23 public:
24  void checkASTDecl(const clang::CXXRecordDecl *CRD, clang::ento::AnalysisManager& mgr,
25  clang::ento::BugReporter &BR, std::string tname ) const ;
26 
27  void checkASTDecl(const clang::CXXRecordDecl *RD,clang::ento::AnalysisManager& mgr,
28  clang::ento::BugReporter &BR) const {
29  std::string pname = "classes.txt.dumperall.unsorted";
30  checkASTDecl(RD,mgr,BR,pname);
31 }
32 
33 };
34 
35 class ClassDumperCT : public clang::ento::Checker<clang::ento::check::ASTDecl<clang::ClassTemplateDecl> > {
36 
37 public:
38 
39  void checkASTDecl(const clang::ClassTemplateDecl *TD, clang::ento::AnalysisManager& mgr,
40  clang::ento::BugReporter &BR ) const ;
41 
42 };
43 
44 class ClassDumperFT : public clang::ento::Checker<clang::ento::check::ASTDecl<clang::FunctionTemplateDecl> > {
45 
46 public:
47 
48  void checkASTDecl(const clang::FunctionTemplateDecl *TD, clang::ento::AnalysisManager& mgr,
49  clang::ento::BugReporter &BR ) const ;
50 
51 };
52 
53 class ClassDumperInherit : public clang::ento::Checker<clang::ento::check::ASTDecl<clang::CXXRecordDecl> > {
54 
55 public:
56  void checkASTDecl(const clang::CXXRecordDecl *CRD, clang::ento::AnalysisManager& mgr,
57  clang::ento::BugReporter &BR ) const ;
58 
59 };
60 
61 
62 }
63 #endif
void checkASTDecl(const clang::FunctionTemplateDecl *TD, clang::ento::AnalysisManager &mgr, clang::ento::BugReporter &BR) const
static char const * tname
Definition: GTSchema.h:13
void checkASTDecl(const clang::CXXRecordDecl *CRD, clang::ento::AnalysisManager &mgr, clang::ento::BugReporter &BR, std::string tname) const
void checkASTDecl(const clang::ClassTemplateDecl *TD, clang::ento::AnalysisManager &mgr, clang::ento::BugReporter &BR) const
void checkASTDecl(const clang::CXXRecordDecl *RD, clang::ento::AnalysisManager &mgr, clang::ento::BugReporter &BR) const
Definition: ClassDumper.h:27
void checkASTDecl(const clang::CXXRecordDecl *CRD, clang::ento::AnalysisManager &mgr, clang::ento::BugReporter &BR) const