[PATCH] D117294: [clangd] Better handling `\n` in the synthesized diagnostic message.

Sam McCall via Phabricator via cfe-commits cfe-commits at lists.llvm.org
Fri Jan 14 03:43:56 PST 2022


sammccall accepted this revision.
sammccall added inline comments.
This revision is now accepted and ready to land.


================
Comment at: clang-tools-extra/clangd/Diagnostics.cpp:635
+  if (Code == "\n") {
+    OS << "\\n";
+    return;
----------------
or "newline"?


Repository:
  rG LLVM Github Monorepo

CHANGES SINCE LAST ACTION
  https://reviews.llvm.org/D117294/new/

https://reviews.llvm.org/D117294



More information about the cfe-commits mailing list