[clang-tools-extra] r352184 - [clangd] Log clang-tidy configuration, NFC

Haojian Wu via cfe-commits cfe-commits at lists.llvm.org
Fri Jan 25 02:14:27 PST 2019


Author: hokein
Date: Fri Jan 25 02:14:27 2019
New Revision: 352184

URL: http://llvm.org/viewvc/llvm-project?rev=352184&view=rev
Log:
[clangd] Log clang-tidy configuration, NFC

Summary: This is used for debugging purpose.

Reviewers: sammccall

Subscribers: ilya-biryukov, ioeric, MaskRay, jkorous, arphaman, kadircet, cfe-commits

Differential Revision: https://reviews.llvm.org/D57057

Modified:
    clang-tools-extra/trunk/clangd/ClangdUnit.cpp

Modified: clang-tools-extra/trunk/clangd/ClangdUnit.cpp
URL: http://llvm.org/viewvc/llvm-project/clang-tools-extra/trunk/clangd/ClangdUnit.cpp?rev=352184&r1=352183&r2=352184&view=diff
==============================================================================
--- clang-tools-extra/trunk/clangd/ClangdUnit.cpp (original)
+++ clang-tools-extra/trunk/clangd/ClangdUnit.cpp Fri Jan 25 02:14:27 2019
@@ -265,6 +265,8 @@ ParsedAST::build(std::unique_ptr<Compile
   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);




More information about the cfe-commits mailing list