[PATCH] D57042: [clangd] NFC: reduce log noise from Diagnostics.

Eric Liu via Phabricator via cfe-commits cfe-commits at lists.llvm.org
Tue Jan 22 01:56:27 PST 2019


ioeric created this revision.
ioeric added a reviewer: sammccall.
Herald added subscribers: cfe-commits, kadircet, arphaman, jkorous, MaskRay, ilya-biryukov.

Repository:
  rCTE Clang Tools Extra

https://reviews.llvm.org/D57042

Files:
  clangd/Diagnostics.cpp


Index: clangd/Diagnostics.cpp
===================================================================
--- clangd/Diagnostics.cpp
+++ clangd/Diagnostics.cpp
@@ -403,8 +403,8 @@
   if (mentionsMainFile(*LastDiag))
     Output.push_back(std::move(*LastDiag));
   else
-    log("Dropped diagnostic outside main file: {0}: {1}", LastDiag->File,
-        LastDiag->Message);
+    vlog("Dropped diagnostic outside main file: {0}: {1}", LastDiag->File,
+         LastDiag->Message);
   LastDiag.reset();
 }
 


-------------- next part --------------
A non-text attachment was scrubbed...
Name: D57042.182863.patch
Type: text/x-patch
Size: 497 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/cfe-commits/attachments/20190122/23baa9eb/attachment.bin>


More information about the cfe-commits mailing list