mirror of
https://github.com/apple/swift.git
synced 2025-12-21 12:14:44 +01:00
Avoid reserved names in C++ code: "__Consuming" (#26720)
Double-underscored names are reserved for the C++ "implementation" (language and standard library). Even though "__Consuming" isn't likely to be part of the C++ standard any time soon, we should follow the rules. Note that the API digester will continue to use the string "__Consuming" for now, even though the underscores aren't really significant, to avoid invalidating existing dumps. No functionality change.
This commit is contained in:
@@ -2508,7 +2508,7 @@ AnyFunctionType::Param swift::computeSelfParam(AbstractFunctionDecl *AFD,
|
||||
|
||||
auto flags = ParameterTypeFlags();
|
||||
switch (selfAccess) {
|
||||
case SelfAccessKind::__Consuming:
|
||||
case SelfAccessKind::Consuming:
|
||||
flags = flags.withOwned(true);
|
||||
break;
|
||||
case SelfAccessKind::Mutating:
|
||||
|
||||
Reference in New Issue
Block a user