File indexing completed on 2024-04-06 12:31:50
0001
0002
0003
0004
0005
0006
0007 #ifndef Utilities_StaticAnalyzers_ConstCastChecker_h
0008 #define Utilities_StaticAnalyzers_ConstCastChecker_h
0009
0010 #include <clang/StaticAnalyzer/Core/Checker.h>
0011 #include <clang/StaticAnalyzer/Core/PathSensitive/CheckerContext.h>
0012 #include <clang/StaticAnalyzer/Core/BugReporter/BugType.h>
0013 #include "CmsException.h"
0014 #include "FWCore/Utilities/interface/thread_safety_macros.h"
0015
0016 namespace clangcms {
0017
0018 class ConstCastChecker : public clang::ento::Checker<clang::ento::check::PreStmt<clang::CXXConstCastExpr> > {
0019 public:
0020 CMS_SA_ALLOW mutable std::unique_ptr<clang::ento::BugType> BT;
0021 void checkPreStmt(const clang::CXXConstCastExpr *CE, clang::ento::CheckerContext &C) const;
0022
0023 private:
0024 CmsException m_exception;
0025 };
0026 }
0027
0028 #endif