================ @@ -961,10 +961,12 @@ template <> struct MappingTraits<FormatStyle> { FormatStyle::LanguageKind Language = ((FormatStyle *)IO.getContext())->Language; ---------------- HazardyKnusperkeks wrote:
```suggestion FormatStyle::LanguageKind Language = Style.Language; if (Language == FormatStyle::LK_None) Language =((FormatStyle *)IO.getContext())->Language; ``` I'd do this. 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