MCPcopy Create free account
hub / github.com/OpenCppCoverage/OpenCppCoverage / ExtractUnifiedDiffOption

Function ExtractUnifiedDiffOption

CppCoverage/OptionsParser.cpp:186–195  ·  view source on GitHub ↗

----------------------------------------------------------------------------

Source from the content-addressed store, hash-verified

184
185 //----------------------------------------------------------------------------
186 std::pair<fs::path, boost::optional<fs::path>>
187 ExtractUnifiedDiffOption(const std::string& option)
188 {
189 auto pos = option.find(OptionsParser::PathSeparator);
190
191 if (pos == std::string::npos)
192 return {option, boost::none};
193
194 return {option.substr(0, pos), fs::path{option.substr(pos + 1)}};
195 }
196
197 //----------------------------------------------------------------------------
198 void AddUnifiedDiff(const ProgramOptionsVariablesMap& variablesMap,

Callers 1

AddUnifiedDiffFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected