[clang] [clang-format] Apply SpaceBeforeInheritanceColon to enum underlying types (PR #189011)

Tharun V K via cfe-commits cfe-commits at lists.llvm.org
Fri Mar 27 19:10:48 PDT 2026


================
@@ -18632,6 +18632,18 @@ TEST_F(FormatTest, ConfigurableSpaceBeforeColon) {
                InvertedSpaceStyle);
 }
 
+TEST_F(FormatTest, EnumUnderlyingTypeUsesInheritanceColonSpacing) {
+  FormatStyle Style = getLLVMStyle();
+
+  Style.SpaceBeforeInheritanceColon = true;
+  verifyFormat("enum A : int {};", Style);
----------------
tharunvk wrote:

Added these now

https://github.com/llvm/llvm-project/pull/189011


More information about the cfe-commits mailing list