mirror of
https://github.com/Icinga/icinga2.git
synced 2025-07-25 14:44:32 +02:00
Type#GetLoadDependencies(): group operations by type
This commit is contained in:
parent
c24713ac10
commit
4b20121dcf
@ -384,15 +384,10 @@ void ClassCompiler::HandleClass(const Klass& klass, const ClassDebugInfo&)
|
|||||||
<< "\tstatic const auto deps ([] {" << std::endl;
|
<< "\tstatic const auto deps ([] {" << std::endl;
|
||||||
|
|
||||||
for (auto& dep : klass.LoadDependencies)
|
for (auto& dep : klass.LoadDependencies)
|
||||||
m_Impl << "\t\tauto type" << dep << " (GetByName(\"" << dep << "\").get());" << std::endl;
|
m_Impl << "\t\tauto type" << dep << " (GetByName(\"" << dep << "\").get());" << std::endl
|
||||||
|
<< "\t\tVERIFY(type" << dep << ");" << std::endl << std::endl;
|
||||||
|
|
||||||
m_Impl << std::endl;
|
m_Impl << "\t\treturn std::unordered_set<Type*>{";
|
||||||
|
|
||||||
for (auto& dep : klass.LoadDependencies)
|
|
||||||
m_Impl << "\t\tVERIFY(type" << dep << ");" << std::endl;
|
|
||||||
|
|
||||||
m_Impl << std::endl
|
|
||||||
<< "\t\treturn std::unordered_set<Type*>{";
|
|
||||||
|
|
||||||
for (const std::string& dep : klass.LoadDependencies)
|
for (const std::string& dep : klass.LoadDependencies)
|
||||||
m_Impl << " type" << dep << ",";
|
m_Impl << " type" << dep << ",";
|
||||||
|
Loading…
x
Reference in New Issue
Block a user