MCPcopy Create free account
hub / github.com/Kitware/CMake / VisitLink

Method VisitLink

Source/cmGraphVizWriter.cxx:171–195  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

169}
170
171void cmGraphVizWriter::VisitLink(cmLinkItem const& depender,
172 cmLinkItem const& dependee, bool isDirectLink,
173 std::string const& scopeType)
174{
175 if (this->ItemExcluded(depender) || this->ItemExcluded(dependee)) {
176 return;
177 }
178
179 if (!isDirectLink) {
180 return;
181 }
182
183 // write global data directly
184 this->WriteConnection(this->GlobalFileStream, depender, dependee, scopeType);
185
186 if (this->GeneratePerTarget) {
187 this->PerTargetConnections[depender].emplace_back(depender, dependee,
188 scopeType);
189 }
190
191 if (this->GenerateDependers) {
192 this->TargetDependersConnections[dependee].emplace_back(dependee, depender,
193 scopeType);
194 }
195}
196
197void cmGraphVizWriter::ReadSettings(
198 std::string const& settingsFileName,

Callers 2

OnDirectLinkMethod · 0.95
OnIndirectLinkMethod · 0.95

Calls 3

ItemExcludedMethod · 0.95
WriteConnectionMethod · 0.95
emplace_backMethod · 0.80

Tested by

no test coverage detected