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

Function ParseStd

Source/cmStandardLevelResolver.cxx:51–59  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

49#undef FEATURE_STRING
50
51int ParseStd(std::string const& level)
52{
53 try {
54 return std::stoi(level);
55 } catch (std::invalid_argument&) {
56 // Fall through to use an invalid value.
57 }
58 return -1;
59}
60
61struct StandardLevelComputer
62{

Callers 5

GetCompileOptionDefMethod · 0.85
GetEffectiveStandardMethod · 0.85
HaveStandardAvailableMethod · 0.85
LanguageStandardLevelMethod · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…