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
clangcms::TrunCastChecker::checkASTDecl
void checkASTDecl(const clang::CXXRecordDecl *D, clang::ento::AnalysisManager &Mgr, clang::ento::BugReporter &BR) const
clangcms::CmsException
Definition: CmsException.h:19
clangcms::TrunCastChecker::m_exception
CmsException m_exception
Definition: TrunCastChecker.h:20
clangcms
Definition: ArgSizeChecker.h:10
CMS_SA_ALLOW
#define CMS_SA_ALLOW
Definition: thread_safety_macros.h:5
clangcms::TrunCastChecker::BT
std::unique_ptr< clang::ento::BugType > BT
Definition: TrunCastChecker.h:14
clangcms::TrunCastChecker
Definition: TrunCastChecker.h:12
thread_safety_macros.h
funct::D
DecomposeProduct< arg, typename Div::arg > D
Definition: Factorize.h:141
CmsException.h