CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
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"
8 
9 namespace clangcms {
10 
11 class TrunCastChecker: public clang::ento::Checker< clang::ento::check::ASTDecl<clang::CXXRecordDecl> > {
12 public:
13  mutable std::unique_ptr<clang::ento::BugType> BT;
14  void checkASTDecl(const clang::CXXRecordDecl *D, clang::ento::AnalysisManager& Mgr, clang::ento::BugReporter &BR) const;
15 
16 private:
18 
19 };
20 
21 }
22 
23 #endif
DecomposeProduct< arg, typename Div::arg > D
Definition: Factorize.h:150
std::unique_ptr< clang::ento::BugType > BT
void checkASTDecl(const clang::CXXRecordDecl *D, clang::ento::AnalysisManager &Mgr, clang::ento::BugReporter &BR) const