CMS 3D CMS Logo

ThrUnsafeFCallChecker.h
Go to the documentation of this file.
1 #ifndef Utilities_StaticAnalyzers_ThrUnsafeFCallChecker_h
2 #define Utilities_StaticAnalyzers_ThrUnsafeFCallChecker_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 <clang/Analysis/CallGraph.h>
10 #include <llvm/Support/SaveAndRestore.h>
11 #include <clang/StaticAnalyzer/Core/PathSensitive/AnalysisManager.h>
12 #include <clang/StaticAnalyzer/Core/PathSensitive/CallEvent.h>
13 #include <clang/StaticAnalyzer/Core/Checker.h>
14 #include <clang/StaticAnalyzer/Core/BugReporter/BugReporter.h>
15 #include <clang/StaticAnalyzer/Core/BugReporter/BugType.h>
16 #include <llvm/ADT/SmallString.h>
17 
18 #include "CmsException.h"
19 #include "CmsSupport.h"
20 
21 namespace clangcms {
22 
23 class ThrUnsafeFCallChecker : public clang::ento::Checker< clang::ento::check::ASTDecl<clang::CXXMethodDecl>,
24  clang::ento::check::ASTDecl<clang::FunctionTemplateDecl> >
25 {
26 
27 
28 public:
29 
30  void checkASTDecl(const clang::CXXMethodDecl *CMD, clang::ento::AnalysisManager& mgr,
31  clang::ento::BugReporter &BR) const ;
32 
33  void checkASTDecl(const clang::FunctionTemplateDecl *TD, clang::ento::AnalysisManager& mgr,
34  clang::ento::BugReporter &BR) const ;
35 
36 
37 private:
39 };
40 
41 }
42 #endif
void checkASTDecl(const clang::CXXMethodDecl *CMD, clang::ento::AnalysisManager &mgr, clang::ento::BugReporter &BR) const