diff options
author | Simon Pilgrim <llvm-dev@redking.me.uk> | 2019-04-30 10:35:37 +0000 |
---|---|---|
committer | Simon Pilgrim <llvm-dev@redking.me.uk> | 2019-04-30 10:35:37 +0000 |
commit | e5a800d6f7b093471c7bb509dfcc3713ef01caf8 (patch) | |
tree | 49725ac301e81a26cb8ba130e7ed8f8c6507ac81 | |
parent | faad10152efff8a19ce35bfd2bc6cd237f6302a4 (diff) |
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
-rw-r--r-- | clangd/CodeComplete.cpp | 6 |
1 files 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<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) |