forked from OSchip/llvm-project
Fix Wpedantic "default argument specified for lambda parameter" warning. NFCI.
llvm-svn: 359548
This commit is contained in:
parent
ea31ddb36f
commit
4723cc5a4c
|
@ -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)
|
||||
|
|
Loading…
Reference in New Issue