CMS 3D CMS Logo

TrunCastChecker.h
Go to the documentation of this file.
1 #ifndef Utilities_StaticAnalyzers_CastSizeChecker_h
2 #define Utilities_StaticAnalyzers_CastSizeChecker_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>
7 #include "CmsException.h"
9 
10 namespace clangcms {
11 
12  class TrunCastChecker : public clang::ento::Checker<clang::ento::check::ASTDecl<clang::CXXRecordDecl> > {
13  public:
14  CMS_SA_ALLOW mutable std::unique_ptr<clang::ento::BugType> BT;
15  void checkASTDecl(const clang::CXXRecordDecl *D,
16  clang::ento::AnalysisManager &Mgr,
17  clang::ento::BugReporter &BR) const;
18 
19  private:
21  };
22 
23 } // namespace clangcms
24 
25 #endif
#define CMS_SA_ALLOW
DecomposeProduct< arg, typename Div::arg > D
Definition: Factorize.h:141
std::unique_ptr< clang::ento::BugType > BT
void checkASTDecl(const clang::CXXRecordDecl *D, clang::ento::AnalysisManager &Mgr, clang::ento::BugReporter &BR) const