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

Method MessagePath

Source/cmQtAutoGenerator.cxx:420–431  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

418}
419
420std::string cmQtAutoGenerator::MessagePath(cm::string_view path) const
421{
422 std::string res;
423 if (cmHasPrefix(path, this->ProjectDirs().Source)) {
424 res = cmStrCat("SRC:", path.substr(this->ProjectDirs().Source.size()));
425 } else if (cmHasPrefix(path, this->ProjectDirs().Binary)) {
426 res = cmStrCat("BIN:", path.substr(this->ProjectDirs().Binary.size()));
427 } else {
428 res = std::string(path);
429 }
430 return cmQtAutoGen::Quoted(res);
431}
432
433bool cmQtAutoGenerator::Run(cm::string_view infoFile, cm::string_view config,
434 cm::string_view executableConfig)

Callers 8

InitFromInfoMethod · 0.45
SettingsFileReadMethod · 0.45
SettingsFileWriteMethod · 0.45
TestQrcRccFilesMethod · 0.45
TestResourcesMethod · 0.45
TestInfoFileMethod · 0.45
GenerateRccMethod · 0.45
GenerateWrapperMethod · 0.45

Calls 4

cmHasPrefixFunction · 0.85
cmStrCatFunction · 0.70
substrMethod · 0.45
sizeMethod · 0.45

Tested by 3

TestQrcRccFilesMethod · 0.36
TestResourcesMethod · 0.36
TestInfoFileMethod · 0.36