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

Method FindOrAddWarning

Source/CTest/cmCTestMemCheckHandler.cxx:799–812  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

797}
798
799std::vector<int>::size_type cmCTestMemCheckHandler::FindOrAddWarning(
800 std::string const& warning)
801{
802 for (std::vector<std::string>::size_type i = 0;
803 i < this->ResultStrings.size(); ++i) {
804 if (this->ResultStrings[i] == warning) {
805 return i;
806 }
807 }
808 this->GlobalResults.push_back(0); // this must stay the same size
809 this->ResultStrings.push_back(warning);
810 this->ResultStringsLong.push_back(warning);
811 return this->ResultStrings.size() - 1;
812}
813bool cmCTestMemCheckHandler::ProcessMemCheckSanitizerOutput(
814 std::string const& str, std::string& log, std::vector<int>& result)
815{

Callers 2

Calls 2

push_backMethod · 0.80
sizeMethod · 0.45

Tested by

no test coverage detected