[clang] [clang-format] Add BreakAfterOpenBracket* and BreakBeforeCloseBracket* (PR #108332)

Gedare Bloom via cfe-commits cfe-commits at lists.llvm.org
Mon Aug 25 12:58:25 PDT 2025


================
@@ -203,19 +203,6 @@ template <> struct MappingTraits<FormatStyle::BraceWrappingFlags> {
   }
 };
 
-template <> struct ScalarEnumerationTraits<FormatStyle::BracketAlignmentStyle> {
----------------
gedare wrote:

I understand. The only way I see to make this work out is to add two new members of `BracketAlignmentStyle` (e.g., `BAS_AlwaysBreakDeprecated` and `BAS_BlockIndentDeprecated`) and set them here, so that later the backward compatibility can be preserved if the newer options are not specified. I also don't think it would be possible to use a `bool`, because we need to store the value of `BracketAlignmentStyle` somewhere in order to make the backward compatibility work out.

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


More information about the cfe-commits mailing list