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

Method CanonicalToolsetName

Source/cmGlobalVisualStudio10Generator.cxx:1738–1748  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1736}
1737
1738std::string cmGlobalVisualStudio10Generator::CanonicalToolsetName(
1739 std::string const& toolset) const
1740{
1741 std::size_t length = toolset.length();
1742
1743 if (cmHasLiteralSuffix(toolset, "_xp")) {
1744 length -= 3;
1745 }
1746
1747 return toolset.substr(0, length);
1748}

Callers 7

LoadFlagTableMethod · 0.95
GetClFlagTableNameMethod · 0.95
GetRcFlagTableNameMethod · 0.95
GetLibFlagTableNameMethod · 0.95
GetLinkFlagTableNameMethod · 0.95
GetMasmFlagTableNameMethod · 0.95

Calls 3

cmHasLiteralSuffixFunction · 0.85
lengthMethod · 0.80
substrMethod · 0.45

Tested by

no test coverage detected