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

Function AddExcludedLineRegexes

CppCoverage/OptionsParser.cpp:235–248  ·  view source on GitHub ↗

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

Source from the content-addressed store, hash-verified

233
234 //----------------------------------------------------------------------------
235 void
236 AddExcludedLineRegexes(const ProgramOptionsVariablesMap& variablesMap,
237 Options& options)
238 {
239 auto excludedLineRegexes =
240 variablesMap.GetOptionalValue<std::vector<std::string>>(
241 ProgramOptions::ExcludedLineRegexOption);
242 if (excludedLineRegexes)
243 {
244 for (const auto& excludedLineRegex : *excludedLineRegexes)
245 options.AddExcludedLineRegex(
246 Tools::LocalToWString(excludedLineRegex));
247 }
248 }
249
250 //---------------------------------------------------------------------
251 SubstitutePdbSourcePath

Callers 1

ParseMethod · 0.85

Calls 2

LocalToWStringFunction · 0.85
AddExcludedLineRegexMethod · 0.80

Tested by

no test coverage detected