From 9875ae48e4d32cdabfbc5d004b82cf854c53eddb Mon Sep 17 00:00:00 2001 From: Simon Pilgrim Date: Tue, 4 Sep 2018 12:17:10 +0000 Subject: [PATCH] Remove lambda default parameter to silence -Wpedantic warning. NFCI. llvm-svn: 341362 --- clang-tools-extra/clangd/CodeComplete.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/clang-tools-extra/clangd/CodeComplete.cpp b/clang-tools-extra/clangd/CodeComplete.cpp index 8a1089966776..89e8acbac927 100644 --- a/clang-tools-extra/clangd/CodeComplete.cpp +++ b/clang-tools-extra/clangd/CodeComplete.cpp @@ -1414,7 +1414,7 @@ private: llvm::DenseMap BundleLookup; auto AddToBundles = [&](const CodeCompletionResult *SemaResult, const Symbol *IndexResult, - bool IsOverride = false) { + bool IsOverride) { CompletionCandidate C; C.SemaResult = SemaResult; C.IndexResult = IndexResult; @@ -1446,7 +1446,7 @@ private: }; // Emit all Sema results, merging them with Index results if possible. for (auto &SemaResult : Recorder->Results) - AddToBundles(&SemaResult, CorrespondingIndexResult(SemaResult)); + AddToBundles(&SemaResult, CorrespondingIndexResult(SemaResult), false); // Handle OverrideResults the same way we deal with SemaResults. Since these // results use the same structs as a SemaResult it is safe to do that, but // we need to make sure we dont' duplicate things in future if Sema starts @@ -1458,7 +1458,7 @@ private: for (const auto &IndexResult : IndexResults) { if (UsedIndexResults.count(&IndexResult)) continue; - AddToBundles(/*SemaResult=*/nullptr, &IndexResult); + AddToBundles(/*SemaResult=*/nullptr, &IndexResult, false); } // We only keep the best N results at any time, in "native" format. TopN Top(