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_THREAD_SAFE mutable std::unique_ptr<clang::ento::BugType> BT;
15  void checkASTDecl(const clang::CXXRecordDecl *D, clang::ento::AnalysisManager& Mgr, clang::ento::BugReporter &BR) const;
16 
17 private:
19 
20 };
21 
22 }
23 
24 #endif
#define CMS_THREAD_SAFE
DecomposeProduct< arg, typename Div::arg > D
Definition: Factorize.h:151
std::unique_ptr< clang::ento::BugType > BT
void checkASTDecl(const clang::CXXRecordDecl *D, clang::ento::AnalysisManager &Mgr, clang::ento::BugReporter &BR) const