[clang-tools-extra] r342229 - [clangd] Don't double-infer compile commands after r342228
Sam McCall via cfe-commits
cfe-commits at lists.llvm.org
Fri Sep 14 05:32:08 PDT 2018
Author: sammccall
Date: Fri Sep 14 05:32:08 2018
New Revision: 342229
URL: http://llvm.org/viewvc/llvm-project?rev=342229&view=rev
Log:
[clangd] Don't double-infer compile commands after r342228
Modified:
clang-tools-extra/trunk/clangd/GlobalCompilationDatabase.cpp
Modified: clang-tools-extra/trunk/clangd/GlobalCompilationDatabase.cpp
URL: http://llvm.org/viewvc/llvm-project/clang-tools-extra/trunk/clangd/GlobalCompilationDatabase.cpp?rev=342229&r1=342228&r2=342229&view=diff
==============================================================================
--- clang-tools-extra/trunk/clangd/GlobalCompilationDatabase.cpp (original)
+++ clang-tools-extra/trunk/clangd/GlobalCompilationDatabase.cpp Fri Sep 14 05:32:08 2018
@@ -95,8 +95,6 @@ DirectoryBasedGlobalCompilationDatabase:
return CachedIt->second.get();
std::string Error = "";
auto CDB = tooling::CompilationDatabase::loadFromDirectory(Dir, Error);
- if (CDB)
- CDB = tooling::inferMissingCompileCommands(std::move(CDB));
auto Result = CDB.get();
CompilationDatabases.insert(std::make_pair(Dir, std::move(CDB)));
return Result;
More information about the cfe-commits
mailing list