/
githubmirror
/
cmssw
Обзор
Документация
Войти
/
githubmirror
/
cmssw
Код
Запросы
0
Пакеты
0
Релизы
0
Аналитика
Безопасность
master
Utilities/StaticAnalyzers/src/StaticLocalChecker.h
28 строк
1001 B
Patrick Gartung
Use emitReport with BugType pointer instead of emitBasicReport. Enable function/class checker bug reports.
04 июн 2023, 19:33
04 июн 2023, 19:33
ab4a2c9
Код
Авторство
О чём код?
//== StaticLocalChecker.h - Checks for non-const static locals --------------*- C++ -*--==// // // by Thomas Hauth [ Thomas.Hauth@cern.ch ] // //===----------------------------------------------------------------------===// #ifndef Utilities_StaticAnalyzers_StaticLocalChecker_h #define Utilities_StaticAnalyzers_StaticLocalChecker_h #include <clang/StaticAnalyzer/Core/Checker.h> #include <clang/StaticAnalyzer/Core/PathSensitive/CheckerContext.h> #include <clang/StaticAnalyzer/Core/BugReporter/BugType.h> #include "FWCore/Utilities/interface/thread_safety_macros.h" #include "CmsException.h" namespace clangcms { class StaticLocalChecker : public clang::ento::Checker<clang::ento::check::ASTDecl<clang::VarDecl> > { CMS_SA_ALLOW mutable std::unique_ptr<clang::ento::BugType> BT; public: void checkASTDecl(const clang::VarDecl *D, clang::ento::AnalysisManager &Mgr, clang::ento::BugReporter &BR) const; private: CmsException m_exception; }; } // namespace clangcms #endif