Index: clang/include/clang/AST/Decl.h =================================================================== --- clang/include/clang/AST/Decl.h +++ clang/include/clang/AST/Decl.h @@ -900,6 +900,8 @@ DAK_Normal }; + enum { NumScopeDepthOrObjCQualsBits = 7 }; + class ParmVarDeclBitfields { friend class ASTDeclReader; friend class ParmVarDecl; @@ -922,8 +924,6 @@ /// Whether this parameter is an ObjC method parameter or not. unsigned IsObjCMethodParam : 1; - enum { NumScopeDepthOrObjCQualsBits = 7 }; - /// If IsObjCMethodParam, a Decl::ObjCDeclQualifier. /// Otherwise, the number of function parameter scopes enclosing /// the function parameter scope in which this parameter was @@ -1654,7 +1654,7 @@ } static constexpr unsigned getMaxFunctionScopeDepth() { - return (1u << ParmVarDeclBitfields::NumScopeDepthOrObjCQualsBits) - 1; + return (1u << NumScopeDepthOrObjCQualsBits) - 1; } /// Returns the index of this parameter in its prototype or method scope.