================ @@ -1169,6 +1181,18 @@ template <> struct MappingTraits<FormatStyle> { IO.mapOptional("WhitespaceSensitiveMacros", Style.WhitespaceSensitiveMacros); + // If AlignAfterOpenBracket was specified but AlignAfterOpenBracketBreak + // was not, initialize the latter for backwards compatibility. + if ((Style.AlignAfterOpenBracket == FormatStyle::BAS_AlwaysBreak || + Style.AlignAfterOpenBracket == FormatStyle::BAS_BlockIndent) && + Style.AlignAfterOpenBracketBreak == + FormatStyle::AlignAfterOpenBracketCustom()) { ---------------- HazardyKnusperkeks wrote:
Couldn't it be set explicitly to that? https://github.com/llvm/llvm-project/pull/108332 _______________________________________________ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits