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

Method Warning

Source/cmQtAutoGenerator.cxx:70–87  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

68}
69
70void cmQtAutoGenerator::Logger::Warning(GenT genType,
71 cm::string_view message) const
72{
73 std::string msg;
74 if (message.find('\n') == std::string::npos) {
75 // Single line message
76 msg = cmStrCat(GeneratorName(genType), " warning: ", message,
77 cmHasSuffix(message, '\n') ? "\n" : "\n\n");
78 } else {
79 // Multi line message
80 msg = cmStrCat(HeadLine(cmStrCat(GeneratorName(genType), " warning")),
81 message, cmHasSuffix(message, '\n') ? "\n" : "\n\n");
82 }
83 {
84 std::lock_guard<std::mutex> lock(this->Mutex_);
85 cmSystemTools::Stdout(msg);
86 }
87}
88
89void cmQtAutoGenerator::Logger::Error(GenT genType,
90 cm::string_view message) const

Callers 3

ReadFileMethod · 0.80
EvalSourceMethod · 0.80
ProcessMethod · 0.80

Calls 3

cmHasSuffixFunction · 0.85
cmStrCatFunction · 0.70
findMethod · 0.45

Tested by

no test coverage detected