[PATCH] D151078: [clang][Diagnostics] Use llvm::raw_ostream::indent()

Aaron Ballman via Phabricator via cfe-commits cfe-commits at lists.llvm.org
Mon May 22 04:45:53 PDT 2023


aaron.ballman 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);
----------------
This drops the output of `|` -- is that intentional?


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