From e5a800d6f7b093471c7bb509dfcc3713ef01caf8 Mon Sep 17 00:00:00 2001 From: Simon Pilgrim Date: Tue, 30 Apr 2019 10:35:37 +0000 Subject: Fix Wpedantic "default argument specified for lambda parameter" warning. NFCI. git-svn-id: https://llvm.org/svn/llvm-project/clang-tools-extra/trunk@359548 91177308-0d34-0410-b5e6-96231b3b80d8 --- clangd/CodeComplete.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/clangd/CodeComplete.cpp b/clangd/CodeComplete.cpp index 6fc6e48b..f8a4a459 100644 --- a/clangd/CodeComplete.cpp +++ b/clangd/CodeComplete.cpp @@ -1463,7 +1463,7 @@ private: llvm::DenseMap 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) -- cgit v1.2.3