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

Method validateTypeValue

Source/cmSetCommand.cxx:97–105  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

95 struct Arguments : public ArgumentParser::ParseResult
96 {
97 ArgumentParser::Continue validateTypeValue(cm::string_view type)
98 {
99 if (!cmState::StringToCacheEntryType(std::string{ type },
100 this->Type)) {
101 this->AddKeywordError(
102 "TYPE"_s, cmStrCat(" invalid value: \""_s, type, "\"\n"_s));
103 }
104 return ArgumentParser::Continue::No;
105 }
106 cmStateEnums::CacheEntryType Type = cmStateEnums::UNINITIALIZED;
107 cm::optional<ArgumentParser::NonEmpty<std::vector<std::string>>> Help;
108 bool Force = false;

Callers

nothing calls this directly

Calls 2

AddKeywordErrorMethod · 0.80
cmStrCatFunction · 0.70

Tested by

no test coverage detected