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

Method RunCheckForUnusedVariables

Source/cmake.cxx:4417–4433  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

4415}
4416
4417void cmake::RunCheckForUnusedVariables()
4418{
4419#ifndef CMAKE_BOOTSTRAP
4420 bool haveUnused = false;
4421 std::ostringstream msg;
4422 msg << "Manually-specified variables were not used by the project:";
4423 for (auto const& it : this->UsedCliVariables) {
4424 if (!it.second) {
4425 haveUnused = true;
4426 msg << "\n " << it.first;
4427 }
4428 }
4429 if (haveUnused) {
4430 this->IssueMessage(MessageType::WARNING, msg.str());
4431 }
4432#endif
4433}
4434
4435bool cmake::GetSuppressDevWarnings() const
4436{

Callers 1

GenerateMethod · 0.95

Calls 2

IssueMessageMethod · 0.95
strMethod · 0.80

Tested by

no test coverage detected