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

Function GetAdviceMessage

CppCoverage/FilterAssistant.cpp:33–52  ·  view source on GitHub ↗

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

Source from the content-addressed store, hash-verified

31 {
32 //-------------------------------------------------------------------------
33 std::wstring
34 GetAdviceMessage(const std::wstring& noFileSelectedMessage,
35 const std::string& selectedOption,
36 const std::string& excludedOption,
37 const std::filesystem::path& suggestedFilter)
38 {
39 auto selectOptionFlag = L"--" + Tools::LocalToWString(selectedOption);
40 auto excludedOptionFlag =
41 L"--" + Tools::LocalToWString(excludedOption);
42
43 return noFileSelectedMessage + L" Please check the values of " +
44 selectOptionFlag + L" and " + excludedOptionFlag +
45 L".\n"
46 L"You can try to remove all " +
47 selectOptionFlag + L" and " + excludedOptionFlag +
48 L" and use " + selectOptionFlag + L'=' +
49 suggestedFilter.wstring() + L" instead.\n" +
50 L"For additional help, see " +
51 L"https://github.com/OpenCppCoverage/OpenCppCoverage/wiki/FAQ#coverage-report-is-empty.";
52 }
53 }
54
55 //-------------------------------------------------------------------------

Callers 1

GetAdviceMessageMethod · 0.85

Calls 1

LocalToWStringFunction · 0.85

Tested by

no test coverage detected