CMS 3D CMS Logo

FunctionChecker.h
Go to the documentation of this file.
1 #ifndef Utilities_StaticAnalyzers_FunctionChecker_h
2 #define Utilities_StaticAnalyzers_FunctionChecker_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 #include "CmsException.h"
8 #include "CmsSupport.h"
9 
10 namespace clangcms {
11 
12 class FunctionChecker : public clang::ento::Checker< clang::ento::check::ASTDecl<clang::CXXMethodDecl>,
13  clang::ento::check::ASTDecl<clang::FunctionDecl>,
14  clang::ento::check::ASTDecl<clang::FunctionTemplateDecl> >
15 {
16 
17 
18 public:
19 
20  void checkASTDecl(const clang::CXXMethodDecl *CMD, clang::ento::AnalysisManager& mgr,
21  clang::ento::BugReporter &BR) const ;
22  void checkASTDecl(const clang::FunctionDecl *FD, clang::ento::AnalysisManager& mgr,
23  clang::ento::BugReporter &BR) const ;
24  void checkASTDecl(const clang::FunctionTemplateDecl *TD, clang::ento::AnalysisManager& mgr,
25  clang::ento::BugReporter &BR) const ;
26 
27 
28 private:
30 };
31 
32 }
33 #endif
void checkASTDecl(const clang::CXXMethodDecl *CMD, clang::ento::AnalysisManager &mgr, clang::ento::BugReporter &BR) const