[clang] [clang-format] Change BracedInitializerIndentWidth to int (PR #128988)

Björn Schäpers via cfe-commits cfe-commits at lists.llvm.org
Thu Feb 27 11:45:04 PST 2025


================
@@ -1441,8 +1441,9 @@ TEST(ConfigParseTest, GetStyleOfFile) {
   ASSERT_EQ(*Style9, SubSubStyle);
 
   // Test 9.8: use inheritance from a file without BasedOnStyle
-  ASSERT_TRUE(FS.addFile("/e/withoutbase/.clang-format", 0,
-                         llvm::MemoryBuffer::getMemBuffer("ColumnLimit: 123")));
+  ASSERT_TRUE(FS.addFile(
+      "/e/withoutbase/.clang-format", 0,
+      llvm::MemoryBuffer::getMemBuffer("BracedInitializerIndentWidth: 2")));
----------------
HazardyKnusperkeks wrote:

I'd add it, not replace the old value.

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


More information about the cfe-commits mailing list