/
githubmirror
/
cmssw
Обзор
Документация
Войти
/
githubmirror
/
cmssw
Код
Запросы
0
Пакеты
0
Релизы
0
Аналитика
Безопасность
master
Utilities/StaticAnalyzers/test/global_static.cpp
16 строк
351 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> // is ok, because const-qualified const static int g_staticConst = 23; static int const& g_ref_staticConst = g_staticConst; static int const* g_ptr_staticConst = &g_staticConst; // results in a warning by GlobalStaticChecker static int g_static; static int* g_ptr_static = &g_static; int main() { g_static = 23; return 0; }