[clang-tools-extra] r358655 - [clangd] Log verbosely (LSP bodies) in lit tests. NFC

Sam McCall via cfe-commits cfe-commits at lists.llvm.org
Thu Apr 18 03:32:08 PDT 2019


Author: sammccall
Date: Thu Apr 18 03:32:08 2019
New Revision: 358655

URL: http://llvm.org/viewvc/llvm-project?rev=358655&view=rev
Log:
[clangd] Log verbosely (LSP bodies) in lit tests. NFC

Modified:
    clang-tools-extra/trunk/clangd/tool/ClangdMain.cpp

Modified: clang-tools-extra/trunk/clangd/tool/ClangdMain.cpp
URL: http://llvm.org/viewvc/llvm-project/clang-tools-extra/trunk/clangd/tool/ClangdMain.cpp?rev=358655&r1=358654&r2=358655&view=diff
==============================================================================
--- clang-tools-extra/trunk/clangd/tool/ClangdMain.cpp (original)
+++ clang-tools-extra/trunk/clangd/tool/ClangdMain.cpp Thu Apr 18 03:32:08 2019
@@ -93,7 +93,7 @@ static llvm::cl::opt<Logger::Level> LogL
 static llvm::cl::opt<bool>
     Test("lit-test",
          llvm::cl::desc("Abbreviation for -input-style=delimited -pretty "
-                        "-run-synchronously -enable-test-scheme. "
+                        "-run-synchronously -enable-test-scheme -log=verbose. "
                         "Intended to simplify lit tests."),
          llvm::cl::init(false), llvm::cl::Hidden);
 
@@ -330,6 +330,7 @@ int main(int argc, char *argv[]) {
   if (Test) {
     RunSynchronously = true;
     InputStyle = JSONStreamStyle::Delimited;
+    LogLevel = Logger::Verbose;
     PrettyPrint = true;
     preventThreadStarvationInTests(); // Ensure background index makes progress.
   }




More information about the cfe-commits mailing list