[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
Fri Jul 17 06:34:39 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:
Yes, that should be all the scenarios. I will need time to figure out how to implement reading the enum as well as the fallbacks and how I should structure this in general, I plan to do so over the weekend and next week if I can't finish it by the weekend. I'll try to find and link the discussions I found on the related fix and issues after I finish implementing this enhancement.
https://github.com/llvm/llvm-project/pull/208916
More information about the cfe-commits
mailing list