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

Function FinalizeFeatureFormat

Source/cmComputeLinkInformation.cxx:657–672  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

655
656namespace {
657void FinalizeFeatureFormat(std::string& format, std::string const& activeTag,
658 std::string const& otherTag)
659{
660 auto pos = format.find(otherTag);
661 if (pos != std::string::npos) {
662 format.erase(pos, format.find('}', pos) - pos + 1);
663 }
664 pos = format.find(activeTag);
665 if (pos != std::string::npos) {
666 format.erase(pos, activeTag.length());
667 pos = format.find('}', pos);
668 if (pos != std::string::npos) {
669 format.erase(pos, 1);
670 }
671 }
672}
673
674bool IsValidFeatureFormat(std::string const& format)
675{

Callers 1

AddLibraryFeatureMethod · 0.85

Calls 3

eraseMethod · 0.80
lengthMethod · 0.80
findMethod · 0.45

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…