diff options
author | Owen Pan <owenpiano@gmail.com> | 2025-02-27 20:18:02 -0800 |
---|---|---|
committer | GitHub <noreply@github.com> | 2025-02-27 20:18:02 -0800 |
commit | 80f34e2716e8e69347ae16da5fff7114442db310 (patch) | |
tree | 93b3987ba316e282ff5c43210f64a8a87c78805b /clang/lib/Format/Format.cpp | |
parent | bafd44bff58cff9efe569a221b232bab004d55cd (diff) | |
download | llvm-80f34e2716e8e69347ae16da5fff7114442db310.zip llvm-80f34e2716e8e69347ae16da5fff7114442db310.tar.gz llvm-80f34e2716e8e69347ae16da5fff7114442db310.tar.bz2 |
[clang-format] Change BracedInitializerIndentWidth to int (#128988)
Fixes #108526
Diffstat (limited to 'clang/lib/Format/Format.cpp')
-rw-r--r-- | clang/lib/Format/Format.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/clang/lib/Format/Format.cpp b/clang/lib/Format/Format.cpp index 68ef119..92678a0 100644 --- a/clang/lib/Format/Format.cpp +++ b/clang/lib/Format/Format.cpp @@ -1512,7 +1512,7 @@ FormatStyle getLLVMStyle(FormatStyle::LanguageKind Language) { LLVMStyle.BinPackLongBracedList = true; LLVMStyle.BinPackParameters = FormatStyle::BPPS_BinPack; LLVMStyle.BitFieldColonSpacing = FormatStyle::BFCS_Both; - LLVMStyle.BracedInitializerIndentWidth = std::nullopt; + LLVMStyle.BracedInitializerIndentWidth = -1; LLVMStyle.BraceWrapping = {/*AfterCaseLabel=*/false, /*AfterClass=*/false, /*AfterControlStatement=*/FormatStyle::BWACS_Never, |