/
githubmirror
/
cmssw
Обзор
Документация
Войти
/
githubmirror
/
cmssw
Код
Запросы
0
Пакеты
0
Релизы
0
Аналитика
Безопасность
master
Utilities/StaticAnalyzers/src/ConstCastChecker.h
28 строк
968 B
Patrick Gartung
Add CMS_SA_ALLOW exceptions on checks involving Decls.
16 дек 2019, 18:30
16 дек 2019, 18:30
1aeb436
Код
Авторство
О чём код?
//== ConstCastChecker.h - Checks for const_cast<> --------------*- C++ -*--==// // // by Thomas Hauth [ Thomas.Hauth@cern.ch ] // //===----------------------------------------------------------------------===// #ifndef Utilities_StaticAnalyzers_ConstCastChecker_h #define Utilities_StaticAnalyzers_ConstCastChecker_h #include <clang/StaticAnalyzer/Core/Checker.h> #include <clang/StaticAnalyzer/Core/PathSensitive/CheckerContext.h> #include <clang/StaticAnalyzer/Core/BugReporter/BugType.h> #include "CmsException.h" #include "FWCore/Utilities/interface/thread_safety_macros.h" namespace clangcms { class ConstCastChecker : public clang::ento::Checker<clang::ento::check::PreStmt<clang::CXXConstCastExpr> > { public: CMS_SA_ALLOW mutable std::unique_ptr<clang::ento::BugType> BT; void checkPreStmt(const clang::CXXConstCastExpr *CE, clang::ento::CheckerContext &C) const; private: CmsException m_exception; }; } // namespace clangcms #endif