[clangd] Log file compile commands

llvm-svn: 319496
This commit is contained in:
Sam McCall 2017-11-30 23:16:23 +00:00
parent e0c11f25ee
commit fae3b02520
1 changed files with 3 additions and 0 deletions

View File

@ -1149,6 +1149,9 @@ CppFile::CppFile(PathRef FileName, tooling::CompileCommand Command,
: 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;