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

via cfe-commits cfe-commits at lists.llvm.org
Wed Jul 15 02:57:33 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)
----------------
mydeveloperday wrote:

Surely there are only a couple of case...   Disable Formatting, Enable Formatting, Disable Formatting but Allow Sortng... is there any other scenarios?

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


More information about the cfe-commits mailing list