owenpan added inline comments.
================ Comment at: clang/lib/Format/UnwrappedLineFormatter.cpp:69-70 } else { - IndentForLevel.resize(Line.Level + 1); + if (IndentForLevel.size() < Line.Level + 1) + IndentForLevel.resize(Line.Level + 1); Indent = getIndent(Line.Level); ---------------- You can delete both lines as the body of the `if` statement is unreachable. (After the `while` loop on lines 62-63, `IndentForLevel.size()` is larger than `Line.Level`.) Repository: rG LLVM Github Monorepo CHANGES SINCE LAST ACTION https://reviews.llvm.org/D129064/new/ https://reviews.llvm.org/D129064 _______________________________________________ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits