CMS 3D CMS Logo

FiniteMathChecker.h
Go to the documentation of this file.
1 #ifndef Utilities_StaticAnalyzers_FastMathChecker_h
2 #define Utilities_StaticAnalyzers_FastMathChecker_h
3 
4 #include <clang/StaticAnalyzer/Core/Checker.h>
5 #include <clang/StaticAnalyzer/Core/PathSensitive/CheckerContext.h>
6 #include <clang/StaticAnalyzer/Core/BugReporter/BugType.h>
8 #include "CmsException.h"
9 
10 namespace clangcms {
11  class FiniteMathChecker : public clang::ento::Checker<clang::ento::check::PreStmt<clang::CallExpr> > {
12  CMS_SA_ALLOW mutable std::unique_ptr<clang::ento::BugType> BT;
13 
14  public:
15  void checkPreStmt(const clang::CallExpr *ref, clang::ento::CheckerContext &C) const;
16  };
17 } // namespace clangcms
18 
19 #endif
#define CMS_SA_ALLOW
void checkPreStmt(const clang::CallExpr *ref, clang::ento::CheckerContext &C) const
std::unique_ptr< clang::ento::BugType > BT