================ @@ -927,14 +927,12 @@ BreakableLineCommentSection::BreakableLineCommentSection( } if (Lines[i].size() != IndentPrefix.size()) { - PrefixSpaceChange[i] = FirstLineSpaceChange; + assert(Lines[i].size() > IndentPrefix.size()); - if (SpacesInPrefix + PrefixSpaceChange[i] < Minimum) { - PrefixSpaceChange[i] += - Minimum - (SpacesInPrefix + PrefixSpaceChange[i]); - } + PrefixSpaceChange[i] = SpacesInPrefix + FirstLineSpaceChange < Minimum ---------------- owenca wrote:
Why would we want to add the redundant parentheses? They were not there in the `if` statement before. https://github.com/llvm/llvm-project/pull/148324 _______________________________________________ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits