mirror of
https://github.com/apple/swift.git
synced 2025-12-14 20:36:38 +01:00
Omit needless words: make _t a skippable type suffix.
Swift SVN r32384
This commit is contained in:
@@ -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;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user