mirror of
https://github.com/apple/swift.git
synced 2025-12-21 12:14:44 +01:00
Make sure to hide constructors with underscored API names as private stdlib symbols.
This completely removes 'Builtin.<type>' from the interface. The changes in stdlib interface were reviewed by Dmitri.
This commit is contained in:
@@ -424,6 +424,9 @@ bool Decl::isPrivateStdlibDecl(bool whitelistProtocols) const {
|
||||
for (auto param : *params) {
|
||||
if (param->hasName() && param->getNameStr().startswith("_"))
|
||||
return true;
|
||||
auto argName = param->getArgumentName();
|
||||
if (!argName.empty() && argName.str().startswith("_"))
|
||||
return true;
|
||||
}
|
||||
return false;
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user