[PATCH] D151078: [clang][Diagnostics] Use llvm::raw_ostream::indent()
Timm Bäder via Phabricator via cfe-commits
cfe-commits at lists.llvm.org
Mon May 22 04:59:09 PDT 2023
tbaeder added inline comments.
================
Comment at: clang/lib/Frontend/TextDiagnostic.cpp:1195-1197
auto indentForLineNumbers = [&] {
- if (MaxLineNoDisplayWidth > 0) {
- OS << ' ';
- for (unsigned I = 0; I != MaxLineNoDisplayWidth; ++I)
- OS << ' ';
- OS << " | ";
- }
+ if (MaxLineNoDisplayWidth > 0)
+ OS.indent(MaxLineNoDisplayWidth + 4);
----------------
aaron.ballman wrote:
> This drops the output of `|` -- is that intentional?
No! Looks like I got a bit too excited about removing code.
Repository:
rG LLVM Github Monorepo
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D151078/new/
https://reviews.llvm.org/D151078
More information about the cfe-commits
mailing list