CMS 3D CMS Logo

getParamDumper.h
Go to the documentation of this file.
1 #ifndef Utilities_StaticAnalyzers_getParamDumper_h
2 #define Utilities_StaticAnalyzers_getParamDumper_h
3 #include <clang/StaticAnalyzer/Core/BugReporter/BugType.h>
4 #include <clang/StaticAnalyzer/Core/Checker.h>
5 #include <clang/StaticAnalyzer/Core/PathSensitive/CheckerContext.h>
6 #include "clang/StaticAnalyzer/Core/PathSensitive/CallEvent.h"
7 
8 namespace clangcms {
9 
11  : public clang::ento::Checker<clang::ento::check::ASTDecl<clang::CXXRecordDecl>, clang::ento::eval::Call> {
12  void analyzerEval(const clang::CallExpr *CE, clang::ento::CheckerContext &C) const;
13 
14  typedef void (getParamDumper::*FnCheck)(const clang::CallExpr *, clang::ento::CheckerContext &C) const;
15 
16  public:
17  bool evalCall(const clang::ento::CallEvent &Call, clang::ento::CheckerContext &C) const;
18 
19  void checkASTDecl(const clang::CXXRecordDecl *CRD,
20  clang::ento::AnalysisManager &mgr,
21  clang::ento::BugReporter &BR) const;
22  };
23 
24 } // namespace clangcms
25 #endif
bool evalCall(const clang::ento::CallEvent &Call, clang::ento::CheckerContext &C) const
void analyzerEval(const clang::CallExpr *CE, clang::ento::CheckerContext &C) const
TEMPL(T2) struct Divides void
Definition: Factorize.h:24
void(getParamDumper::* FnCheck)(const clang::CallExpr *, clang::ento::CheckerContext &C) const
void checkASTDecl(const clang::CXXRecordDecl *CRD, clang::ento::AnalysisManager &mgr, clang::ento::BugReporter &BR) const