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

Method ProcessAdditionalValues

Source/CTest/cmCTestBuildCommand.cxx:130–145  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

128}
129
130void cmCTestBuildCommand::ProcessAdditionalValues(
131 cmCTestGenericHandler* generic, HandlerArguments const& arguments,
132 cmExecutionStatus& status) const
133{
134 cmMakefile& mf = status.GetMakefile();
135 auto const& args = static_cast<BuildArguments const&>(arguments);
136 auto const* handler = static_cast<cmCTestBuildHandler*>(generic);
137 if (!args.NumberErrors.empty()) {
138 mf.AddDefinition(args.NumberErrors,
139 std::to_string(handler->GetTotalErrors()));
140 }
141 if (!args.NumberWarnings.empty()) {
142 mf.AddDefinition(args.NumberWarnings,
143 std::to_string(handler->GetTotalWarnings()));
144 }
145}

Callers

nothing calls this directly

Calls 6

to_stringFunction · 0.85
GetTotalErrorsMethod · 0.80
GetTotalWarningsMethod · 0.80
GetMakefileMethod · 0.45
emptyMethod · 0.45
AddDefinitionMethod · 0.45

Tested by

no test coverage detected