[clang-tools-extra] r345233 - [clangd] Remove unused CDB function. NFC
Sam McCall via cfe-commits
cfe-commits at lists.llvm.org
Wed Oct 24 19:25:44 PDT 2018
Author: sammccall
Date: Wed Oct 24 19:25:44 2018
New Revision: 345233
URL: http://llvm.org/viewvc/llvm-project?rev=345233&view=rev
Log:
[clangd] Remove unused CDB function. NFC
Modified:
clang-tools-extra/trunk/clangd/GlobalCompilationDatabase.cpp
clang-tools-extra/trunk/clangd/GlobalCompilationDatabase.h
Modified: clang-tools-extra/trunk/clangd/GlobalCompilationDatabase.cpp
URL: http://llvm.org/viewvc/llvm-project/clang-tools-extra/trunk/clangd/GlobalCompilationDatabase.cpp?rev=345233&r1=345232&r2=345233&view=diff
==============================================================================
--- clang-tools-extra/trunk/clangd/GlobalCompilationDatabase.cpp (original)
+++ clang-tools-extra/trunk/clangd/GlobalCompilationDatabase.cpp Wed Oct 24 19:25:44 2018
@@ -59,12 +59,6 @@ DirectoryBasedGlobalCompilationDatabase:
return C;
}
-void DirectoryBasedGlobalCompilationDatabase::setCompileCommandsDir(Path P) {
- std::lock_guard<std::mutex> Lock(Mutex);
- CompileCommandsDir = P;
- CompilationDatabases.clear();
-}
-
void DirectoryBasedGlobalCompilationDatabase::setExtraFlagsForFile(
PathRef File, std::vector<std::string> ExtraFlags) {
std::lock_guard<std::mutex> Lock(Mutex);
Modified: clang-tools-extra/trunk/clangd/GlobalCompilationDatabase.h
URL: http://llvm.org/viewvc/llvm-project/clang-tools-extra/trunk/clangd/GlobalCompilationDatabase.h?rev=345233&r1=345232&r2=345233&view=diff
==============================================================================
--- clang-tools-extra/trunk/clangd/GlobalCompilationDatabase.h (original)
+++ clang-tools-extra/trunk/clangd/GlobalCompilationDatabase.h Wed Oct 24 19:25:44 2018
@@ -62,9 +62,6 @@ public:
/// Uses the default fallback command, adding any extra flags.
tooling::CompileCommand getFallbackCommand(PathRef File) const override;
- /// Set the compile commands directory to \p P.
- void setCompileCommandsDir(Path P);
-
/// Sets the extra flags that should be added to a file.
void setExtraFlagsForFile(PathRef File, std::vector<std::string> ExtraFlags);
More information about the cfe-commits
mailing list