[PATCH] D57057: [clangd] Log clang-tidy configuration, NFC

Haojian Wu via Phabricator via cfe-commits cfe-commits at lists.llvm.org
Tue Jan 22 07:49:20 PST 2019


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

This is used for debugging purpose.


Repository:
  rCTE Clang Tools Extra

https://reviews.llvm.org/D57057

Files:
  clangd/ClangdUnit.cpp


Index: clangd/ClangdUnit.cpp
===================================================================
--- clangd/ClangdUnit.cpp
+++ clangd/ClangdUnit.cpp
@@ -265,6 +265,8 @@
   llvm::Optional<tidy::ClangTidyContext> CTContext;
   {
     trace::Span Tracer("ClangTidyInit");
+    vlog("ClangTidy configuration for file {0}: {1}", MainInput.getFile(),
+         tidy::configurationAsText(ClangTidyOpts));
     tidy::ClangTidyCheckFactories CTFactories;
     for (const auto &E : tidy::ClangTidyModuleRegistry::entries())
       E.instantiate()->addCheckFactories(CTFactories);


-------------- next part --------------
A non-text attachment was scrubbed...
Name: D57057.182917.patch
Type: text/x-patch
Size: 570 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/cfe-commits/attachments/20190122/4fcfa2a2/attachment.bin>


More information about the cfe-commits mailing list