@@ -265,9 +265,9 @@ TEST(ConfigParseTest, ParsesConfigurationIntegers) {
265265 Style.Language = FormatStyle::LK_Cpp;
266266
267267 CHECK_PARSE_INT (AccessModifierOffset);
268+ CHECK_PARSE_INT (BracedInitializerIndentWidth);
268269 CHECK_PARSE_INT (PPIndentWidth);
269270
270- CHECK_PARSE_UNSIGNED (BracedInitializerIndentWidth);
271271 CHECK_PARSE_UNSIGNED (ColumnLimit);
272272 CHECK_PARSE_UNSIGNED (ConstructorInitializerIndentWidth);
273273 CHECK_PARSE_UNSIGNED (ContinuationIndentWidth);
@@ -1441,8 +1441,9 @@ TEST(ConfigParseTest, GetStyleOfFile) {
14411441 ASSERT_EQ (*Style9, SubSubStyle);
14421442
14431443 // Test 9.8: use inheritance from a file without BasedOnStyle
1444- ASSERT_TRUE (FS.addFile (" /e/withoutbase/.clang-format" , 0 ,
1445- llvm::MemoryBuffer::getMemBuffer (" ColumnLimit: 123" )));
1444+ ASSERT_TRUE (FS.addFile (
1445+ " /e/withoutbase/.clang-format" , 0 ,
1446+ llvm::MemoryBuffer::getMemBuffer (" BracedInitializerIndentWidth: 2" )));
14461447 ASSERT_TRUE (
14471448 FS.addFile (" /e/withoutbase/sub/.clang-format" , 0 ,
14481449 llvm::MemoryBuffer::getMemBuffer (
@@ -1452,15 +1453,15 @@ TEST(ConfigParseTest, GetStyleOfFile) {
14521453 ASSERT_TRUE (static_cast <bool >(Style9));
14531454 ASSERT_EQ (*Style9, [] {
14541455 auto Style = getLLVMStyle ();
1455- Style.ColumnLimit = 123 ;
1456+ Style.BracedInitializerIndentWidth = 2 ;
14561457 return Style;
14571458 }());
14581459
14591460 Style9 = getStyle (" file" , " /e/withoutbase/sub/code.cpp" , " google" , " " , &FS);
14601461 ASSERT_TRUE (static_cast <bool >(Style9));
14611462 ASSERT_EQ (*Style9, [] {
14621463 auto Style = getLLVMStyle ();
1463- Style.ColumnLimit = 123 ;
1464+ Style.BracedInitializerIndentWidth = 2 ;
14641465 Style.IndentWidth = 7 ;
14651466 return Style;
14661467 }());
0 commit comments