forked from OSchip/llvm-project
parent
b00c2144b3
commit
af1daa9854
|
@ -3188,7 +3188,7 @@ DeclarationName Sema::CorrectTypo(LookupResult &Res, Scope *S, CXXScopeSpec *SS,
|
||||||
unsigned ED = Consumer.getBestEditDistance();
|
unsigned ED = Consumer.getBestEditDistance();
|
||||||
if (ED > 0 && Typo->getName().size() / ED < 3) {
|
if (ED > 0 && Typo->getName().size() / ED < 3) {
|
||||||
// If this was an unqualified lookup, note that no correction was found.
|
// If this was an unqualified lookup, note that no correction was found.
|
||||||
if (IsUnqualifiedLookup && ED > 0)
|
if (IsUnqualifiedLookup)
|
||||||
(void)UnqualifiedTyposCorrected[Typo];
|
(void)UnqualifiedTyposCorrected[Typo];
|
||||||
|
|
||||||
return DeclarationName();
|
return DeclarationName();
|
||||||
|
|
Loading…
Reference in New Issue