Back to home page

Project CMSSW displayed by LXR

 
 

    


File indexing completed on 2022-12-21 00:09:17

0001 #ifndef Utilities_StaticAnalyzers_CastSizeChecker_h
0002 #define Utilities_StaticAnalyzers_CastSizeChecker_h
0003 
0004 #include <clang/StaticAnalyzer/Core/Checker.h>
0005 #include <clang/StaticAnalyzer/Core/PathSensitive/CheckerContext.h>
0006 #include <clang/StaticAnalyzer/Core/BugReporter/BugType.h>
0007 #include "CmsException.h"
0008 
0009 namespace clangcms {
0010 
0011   class TrunCastChecker : public clang::ento::Checker<clang::ento::check::ASTDecl<clang::CXXRecordDecl> > {
0012   public:
0013     void checkASTDecl(const clang::CXXRecordDecl *D,
0014                       clang::ento::AnalysisManager &Mgr,
0015                       clang::ento::BugReporter &BR) const;
0016 
0017   private:
0018     CmsException m_exception;
0019   };
0020 
0021 }  // namespace clangcms
0022 
0023 #endif