Omit needless words: make _t a skippable type suffix.

Swift SVN r32384
This commit is contained in:
Doug Gregor
2015-10-01 22:37:43 +00:00
parent 2d5d3d240c
commit cf7cc554cd
3 changed files with 10 additions and 0 deletions

View File

@@ -313,6 +313,10 @@ static Optional<StringRef> skipTypeSuffix(StringRef typeName) {
}
}
// _t.
if (typeName.size() > 2 && typeName.endswith("_t")) {
return typeName.drop_back(2);
}
return None;
}