MCPcopy Create free account
hub / github.com/Icinga/icinga2 / CollectIncludes

Method CollectIncludes

lib/config/configcompiler.cpp:96–106  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

94}
95
96void ConfigCompiler::CollectIncludes(std::vector<std::unique_ptr<Expression> >& expressions,
97 const String& file, const String& zone, const String& package)
98{
99 try {
100 expressions.emplace_back(CompileFile(file, zone, package));
101 } catch (const std::exception& ex) {
102 Log(LogWarning, "ConfigCompiler")
103 << "Cannot compile file '"
104 << file << "': " << DiagnosticInformation(ex);
105 }
106}
107
108/**
109 * Handles an include directive.

Callers

nothing calls this directly

Calls 1

LogClass · 0.85

Tested by

no test coverage detected