/
githubmirror
/
cmssw
Обзор
Документация
Войти
/
githubmirror
/
cmssw
Код
Запросы
0
Пакеты
0
Релизы
0
Аналитика
Безопасность
master
Utilities/General/src/ClassName.cc
18 строк
425 B
Chris Jones
initialized variables before use in framework code
30 сен 2025, 17:56
30 сен 2025, 17:56
44555ee
Код
Авторство
О чём код?
#include "Utilities/General/interface/ClassName.h" #include <cxxabi.h> #include <cstring> Demangle::Demangle(const char* sc) : demangle(nullptr) { if (sc == nullptr) return; int status = 0; demangle = abi::__cxa_demangle(sc, nullptr, nullptr, &status); if (status == 0) return; demangle = nullptr; if (status == -1) throw std::bad_alloc(); else if (status == -2) { demangle = strdup(sc); } }