We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 6ce4be9 commit 4960ad1Copy full SHA for 4960ad1
lib/ClangImporter/ClangImporter.cpp
@@ -1137,8 +1137,9 @@ void ClangImporter::collectSubModuleNames(
1137
}
1138
auto submoduleNameLength = submodule->getFullModuleName().length();
1139
for (auto sub : submodule->submodules()) {
1140
- StringRef full = sub->getFullModuleName();
1141
- names.push_back(full.substr(submoduleNameLength + 1).str());
+ std::string full = sub->getFullModuleName();
+ full.erase(0, submoduleNameLength + 1);
1142
+ names.push_back(std::move(full));
1143
1144
1145
0 commit comments