[clang-tools-extra] r359548 - Fix Wpedantic "default argument specified for lambda parameter" warning. NFCI.
Simon Pilgrim via cfe-commits
cfe-commits at lists.llvm.org
Tue Apr 30 03:35:37 PDT 2019
Author: rksimon
Date: Tue Apr 30 03:35:37 2019
New Revision: 359548
URL: http://llvm.org/viewvc/llvm-project?rev=359548&view=rev
Log:
Fix Wpedantic "default argument specified for lambda parameter" warning. NFCI.
Modified:
clang-tools-extra/trunk/clangd/CodeComplete.cpp
Modified: clang-tools-extra/trunk/clangd/CodeComplete.cpp
URL: http://llvm.org/viewvc/llvm-project/clang-tools-extra/trunk/clangd/CodeComplete.cpp?rev=359548&r1=359547&r2=359548&view=diff
==============================================================================
--- clang-tools-extra/trunk/clangd/CodeComplete.cpp (original)
+++ clang-tools-extra/trunk/clangd/CodeComplete.cpp Tue Apr 30 03:35:37 2019
@@ -1463,7 +1463,7 @@ private:
llvm::DenseMap<size_t, size_t> BundleLookup;
auto AddToBundles = [&](const CodeCompletionResult *SemaResult,
const Symbol *IndexResult,
- const RawIdentifier *IdentifierResult = nullptr) {
+ const RawIdentifier *IdentifierResult) {
CompletionCandidate C;
C.SemaResult = SemaResult;
C.IndexResult = IndexResult;
@@ -1502,12 +1502,12 @@ private:
};
// Emit all Sema results, merging them with Index results if possible.
for (auto &SemaResult : SemaResults)
- AddToBundles(&SemaResult, CorrespondingIndexResult(SemaResult));
+ AddToBundles(&SemaResult, CorrespondingIndexResult(SemaResult), nullptr);
// Now emit any Index-only results.
for (const auto &IndexResult : IndexResults) {
if (UsedIndexResults.count(&IndexResult))
continue;
- AddToBundles(/*SemaResult=*/nullptr, &IndexResult);
+ AddToBundles(/*SemaResult=*/nullptr, &IndexResult, nullptr);
}
// Emit identifier results.
for (const auto &Ident : IdentifierResults)
More information about the cfe-commits
mailing list