[llvm-branch-commits] [clang-tools-extra] 38d32e4 - [clangd] Reorder the class field to avoid -Wreorder-ctor warning, NFC.

Haojian Wu via llvm-branch-commits llvm-branch-commits at lists.llvm.org
Fri Dec 11 01:51:16 PST 2020


Author: Haojian Wu
Date: 2020-12-11T10:46:54+01:00
New Revision: 38d32e4fd70cc2b1f6ec10b578a56e631e8ed658

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

LOG: [clangd] Reorder the class field to avoid -Wreorder-ctor warning, NFC.

Added: 
    

Modified: 
    clang-tools-extra/clangd/index/remote/Client.cpp

Removed: 
    


################################################################################
diff  --git a/clang-tools-extra/clangd/index/remote/Client.cpp b/clang-tools-extra/clangd/index/remote/Client.cpp
index bb19be54f6d2..0387e65db7d0 100644
--- a/clang-tools-extra/clangd/index/remote/Client.cpp
+++ b/clang-tools-extra/clangd/index/remote/Client.cpp
@@ -128,8 +128,8 @@ class IndexClient : public clangd::SymbolIndex {
 
 private:
   std::unique_ptr<remote::v1::SymbolIndex::Stub> Stub;
-  llvm::SmallString<256> ServerAddress;
   std::unique_ptr<Marshaller> ProtobufMarshaller;
+  llvm::SmallString<256> ServerAddress;
   // Each request will be terminated if it takes too long.
   std::chrono::milliseconds DeadlineWaitingTime;
 };


        


More information about the llvm-branch-commits mailing list