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:
Jordan Rose
2019-08-19 13:06:53 -07:00
committed by GitHub
parent e9bcca8166
commit 94d1e5efe6
11 changed files with 26 additions and 21 deletions

View File

@@ -300,7 +300,7 @@ using MetatypeRepresentationField = BCFixed<2>;
enum class SelfAccessKind : uint8_t {
NonMutating = 0,
Mutating,
__Consuming,
Consuming,
};
using SelfAccessKindField = BCFixed<2>;