[clang] Allow SortIncludes to override DisableFormat when both are explicitly set to true (PR #208916)

Joseph Tay via cfe-commits cfe-commits at lists.llvm.org
Tue Jul 14 00:53:09 PDT 2026


================
@@ -1355,6 +1355,8 @@ template <> struct MappingTraits<FormatStyle> {
     IO.mapOptional("Cpp11BracedListStyle", Style.Cpp11BracedListStyle);
     IO.mapOptional("DerivePointerAlignment", Style.DerivePointerAlignment);
     IO.mapOptional("DisableFormat", Style.DisableFormat);
+    if (Style.DisableFormat)
----------------
DynamicProdBreaker wrote:

Hmm, I'm not sure how else to implement this. I'm going to have to spend some time rethinking how to implement it in that case, hopefully that's fine. Though I guess this Pull Request is still in draft so that should be ok.

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


More information about the cfe-commits mailing list