diff --git a/clang/include/clang/Format/Format.h b/clang/include/clang/Format/Format.h --- a/clang/include/clang/Format/Format.h +++ b/clang/include/clang/Format/Format.h @@ -105,7 +105,7 @@ BracketAlignmentStyle AlignAfterOpenBracket; /// Different style for aligning array initializers. - enum ArrayInitializerAlignmentStyle { + enum ArrayInitializerAlignmentStyle : unsigned char { /// Align array column and left justify the columns e.g.: /// \code /// struct test demo[] = @@ -140,7 +140,7 @@ /// ``AlignConsecutiveBitFields``), names in declarations (see /// ``AlignConsecutiveDeclarations``) or macro definitions (see /// ``AlignConsecutiveMacros``). - enum AlignConsecutiveStyle { + enum AlignConsecutiveStyle : unsigned char { ACS_None, ACS_Consecutive, ACS_AcrossEmptyLines, @@ -1771,7 +1771,7 @@ BraceWrappingFlags BraceWrapping; /// Different ways to break before concept declarations. - enum BreakBeforeConceptDeclarationsStyle { + enum BreakBeforeConceptDeclarationsStyle : unsigned char { /// Keep the template declaration line together with ``concept``. /// \code /// template concept C = ...; @@ -1882,7 +1882,7 @@ std::string CommentPragmas; /// Different specifiers and qualifiers alignment styles. - enum QualifierAlignmentStyle { + enum QualifierAlignmentStyle : unsigned char { /// Don't change specifiers/qualifiers to either Left or Right alignment /// (default). /// \code @@ -3067,7 +3067,7 @@ std::vector RawStringFormats; /// \brief The ``&`` and ``&&`` alignment style. - enum ReferenceAlignmentStyle { + enum ReferenceAlignmentStyle : unsigned char { /// Align reference like ``PointerAlignment``. RAS_Pointer, /// Align reference to the left. @@ -3166,7 +3166,7 @@ /// \brief The possible positions for the requires clause. The /// ``IndentRequires`` option is only used if the ``requires`` is put on the /// start of a line. - enum RequiresClausePositionStyle { + enum RequiresClausePositionStyle : unsigned char { /// Always put the ``requires`` clause on its own line. /// \code /// template @@ -3245,7 +3245,7 @@ RequiresClausePositionStyle RequiresClausePosition; /// \brief The style if definition blocks should be separated. - enum SeparateDefinitionStyle { + enum SeparateDefinitionStyle : unsigned char { /// Leave definition blocks as they are. SDS_Leave, /// Insert an empty line between definition blocks.