[clang-tools-extra] r362489 - Fix Wshadow warning
Simon Pilgrim via cfe-commits
cfe-commits at lists.llvm.org
Tue Jun 4 04:11:51 PDT 2019
Author: rksimon
Date: Tue Jun 4 04:11:51 2019
New Revision: 362489
URL: http://llvm.org/viewvc/llvm-project?rev=362489&view=rev
Log:
Fix Wshadow warning
Modified:
clang-tools-extra/trunk/clangd/ClangdLSPServer.cpp
Modified: clang-tools-extra/trunk/clangd/ClangdLSPServer.cpp
URL: http://llvm.org/viewvc/llvm-project/clang-tools-extra/trunk/clangd/ClangdLSPServer.cpp?rev=362489&r1=362488&r2=362489&view=diff
==============================================================================
--- clang-tools-extra/trunk/clangd/ClangdLSPServer.cpp (original)
+++ clang-tools-extra/trunk/clangd/ClangdLSPServer.cpp Tue Jun 4 04:11:51 2019
@@ -771,8 +771,8 @@ void ClangdLSPServer::onSignatureHelp(co
return Reply(std::move(*Signature));
// Strip out the offsets from signature help for
// clients that only support string labels.
- for (auto &Signature : Signature->signatures) {
- for (auto &Param : Signature.parameters)
+ for (auto &SigInfo : Signature->signatures) {
+ for (auto &Param : SigInfo.parameters)
Param.labelOffsets.reset();
}
return Reply(std::move(*Signature));
More information about the cfe-commits
mailing list