[clang-tools-extra] r319496 - [clangd] Log file compile commands
Sam McCall via cfe-commits
cfe-commits at lists.llvm.org
Thu Nov 30 15:16:23 PST 2017
Author: sammccall
Date: Thu Nov 30 15:16:23 2017
New Revision: 319496
URL: http://llvm.org/viewvc/llvm-project?rev=319496&view=rev
Log:
[clangd] Log file compile commands
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=319496&r1=319495&r2=319496&view=diff
==============================================================================
--- clang-tools-extra/trunk/clangd/ClangdUnit.cpp (original)
+++ clang-tools-extra/trunk/clangd/ClangdUnit.cpp Thu Nov 30 15:16:23 2017
@@ -1149,6 +1149,9 @@ CppFile::CppFile(PathRef FileName, tooli
: FileName(FileName), Command(std::move(Command)),
StorePreamblesInMemory(StorePreamblesInMemory), RebuildCounter(0),
RebuildInProgress(false), PCHs(std::move(PCHs)), Logger(Logger) {
+ Logger.log("Opened file " + FileName + " with command [" +
+ this->Command.Directory + "] " +
+ llvm::join(this->Command.CommandLine, " ") + "\n");
std::lock_guard<std::mutex> Lock(Mutex);
LatestAvailablePreamble = nullptr;
More information about the cfe-commits
mailing list