summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorSimon Pilgrim <llvm-dev@redking.me.uk>2018-09-04 12:17:10 +0000
committerSimon Pilgrim <llvm-dev@redking.me.uk>2018-09-04 12:17:10 +0000
commit9875ae48e4d32cdabfbc5d004b82cf854c53eddb (patch)
tree30e4cfc88b2c9c3522cfe398e0c1e57e4cb8f4cf
parent89225ed5bce400534c4c20e583faed7bcfbf9353 (diff)
downloadbcm5719-llvm-9875ae48e4d32cdabfbc5d004b82cf854c53eddb.tar.gz
bcm5719-llvm-9875ae48e4d32cdabfbc5d004b82cf854c53eddb.zip
Remove lambda default parameter to silence -Wpedantic warning. NFCI.
llvm-svn: 341362
-rw-r--r--clang-tools-extra/clangd/CodeComplete.cpp6
1 files changed, 3 insertions, 3 deletions
diff --git a/clang-tools-extra/clangd/CodeComplete.cpp b/clang-tools-extra/clangd/CodeComplete.cpp
index 8a108996677..89e8acbac92 100644
--- a/clang-tools-extra/clangd/CodeComplete.cpp
+++ b/clang-tools-extra/clangd/CodeComplete.cpp
@@ -1414,7 +1414,7 @@ private:
llvm::DenseMap<size_t, size_t> 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<ScoredBundle, ScoredBundleGreater> Top(
OpenPOWER on IntegriCloud