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

Method Log

Source/cmSarifLog.cxx:64–75  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

62}
63
64void cmSarif::ResultsLog::Log(cmSarif::Result&& result) const
65{
66 // The rule ID is optional, but if it is present, enable metadata output for
67 // the rule by marking it as used
68 if (result.RuleId) {
69 std::size_t index = this->UseRule(*result.RuleId);
70 result.RuleIndex = index;
71 }
72
73 // Add the result to the log
74 this->Results.emplace_back(result);
75}
76
77void cmSarif::ResultsLog::LogMessage(
78 MessageType t, std::string const& text,

Callers 1

LogMessageMethod · 0.95

Calls 2

UseRuleMethod · 0.95
emplace_backMethod · 0.80

Tested by

no test coverage detected