mirror of
https://github.com/apple/swift.git
synced 2025-12-21 12:14:44 +01:00
Excise the terms "blacklist" and "whitelist" from Swift source. (#11687)
The etymology of these terms isn't about race, but "black" = "blocked" and "white" = "allowed" isn't really a good look these days. In most cases we weren't using these terms particularly precisely anyway, so the rephrasing is actually an improvement.
This commit is contained in:
@@ -284,7 +284,7 @@ void getSwiftDocKeyword(const Decl* D, CommandWordsPairs &Words) {
|
||||
|
||||
static bool shouldHideDeclFromCompletionResults(const ValueDecl *D) {
|
||||
// Hide private stdlib declarations.
|
||||
if (D->isPrivateStdlibDecl(/*whitelistProtocols*/false) ||
|
||||
if (D->isPrivateStdlibDecl(/*treatNonBuiltinProtocolsAsPublic*/false) ||
|
||||
// ShowInInterfaceAttr is for decls to show in interface as exception but
|
||||
// they are not intended to be used directly.
|
||||
D->getAttrs().hasAttribute<ShowInInterfaceAttr>())
|
||||
|
||||
Reference in New Issue
Block a user