================ @@ -1355,6 +1362,10 @@ unsigned UnwrappedLineFormatter::format( bool FixIndentation = (FixBadIndentation || ContinueFormatting) && Indent != TheLine.First->OriginalColumn; bool ShouldFormat = TheLine.Affected || FixIndentation; + + if (Style.IgnorePPDefinitions && lineContainsPPDefinition(TheLine)) + ShouldFormat = false; ---------------- tomekpaszek wrote:
Personally, I like the original approach but maybe having longer conditions is more in line with the rest of the code. Let me know if I should change it. https://github.com/llvm/llvm-project/pull/70338 _______________________________________________ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits