/
githubmirror
/
cmssw
Обзор
Документация
Войти
/
githubmirror
/
cmssw
Код
Запросы
0
Пакеты
0
Релизы
0
Аналитика
Безопасность
master
Utilities/StaticAnalyzers/test/global_static_edm.cpp
27 строк
498 B
Ivan Razumov
Replace MutableMemberChecker with version that checks access to mutable member via const pointer
04 дек 2024, 17:44
04 дек 2024, 17:44
d01e337
Код
Авторство
О чём код?
#include <string> namespace edmplugin { template <class R> class PluginFactory {}; } // namespace edmplugin namespace edm { typedef edmplugin::PluginFactory<int> InputSourcePluginFactory; } // is ok, because const-qualified const static int g_staticConst = 23; // results in a warning by GlobalStaticChecker static int g_static; // results in a warning by GlobalStaticChecker static edm::InputSourcePluginFactory g_static_edm_namespace; int main() { g_static = 23; return 0; }