[clang-tools-extra] d25fbaa - [clangd] Fix unsued private field warning

Kadir Cetinkaya via cfe-commits cfe-commits at lists.llvm.org
Sat Feb 13 04:25:29 PST 2021


Author: Kadir Cetinkaya
Date: 2021-02-13T13:20:15+01:00
New Revision: d25fbaa4a4a1284e998f545d45280e976c29cc85

URL: https://github.com/llvm/llvm-project/commit/d25fbaa4a4a1284e998f545d45280e976c29cc85
DIFF: https://github.com/llvm/llvm-project/commit/d25fbaa4a4a1284e998f545d45280e976c29cc85.diff

LOG: [clangd] Fix unsued private field warning

Added: 
    

Modified: 
    clang-tools-extra/clangd/ClangdServer.cpp
    clang-tools-extra/clangd/ClangdServer.h

Removed: 
    


################################################################################
diff  --git a/clang-tools-extra/clangd/ClangdServer.cpp b/clang-tools-extra/clangd/ClangdServer.cpp
index bf834eccd9f5..b39e582d84a1 100644
--- a/clang-tools-extra/clangd/ClangdServer.cpp
+++ b/clang-tools-extra/clangd/ClangdServer.cpp
@@ -127,7 +127,7 @@ ClangdServer::Options::operator TUScheduler::Options() const {
 ClangdServer::ClangdServer(const GlobalCompilationDatabase &CDB,
                            const ThreadsafeFS &TFS, const Options &Opts,
                            Callbacks *Callbacks)
-    : CDB(CDB), TFS(TFS), Modules(Opts.Modules),
+    : CDB(CDB), TFS(TFS),
       DynamicIdx(Opts.BuildDynamicSymbolIndex ? new FileIndex() : nullptr),
       ClangTidyProvider(Opts.ClangTidyProvider),
       WorkspaceRoot(Opts.WorkspaceRoot),

diff  --git a/clang-tools-extra/clangd/ClangdServer.h b/clang-tools-extra/clangd/ClangdServer.h
index 5e51616a4b2d..83c8567461ec 100644
--- a/clang-tools-extra/clangd/ClangdServer.h
+++ b/clang-tools-extra/clangd/ClangdServer.h
@@ -339,7 +339,6 @@ class ClangdServer {
 
   const GlobalCompilationDatabase &CDB;
   const ThreadsafeFS &TFS;
-  ModuleSet *Modules = nullptr;
 
   Path ResourceDir;
   // The index used to look up symbols. This could be:


        


More information about the cfe-commits mailing list