================ @@ -523,6 +523,9 @@ bool Sema::LookupTemplateName(LookupResult &Found, Scope *S, CXXScopeSpec &SS, if (Found.isAmbiguous()) { Found.clear(); } else if (!Found.empty()) { + // Do not erase the typo-corrected result to avoid duplicating the typo + // correction in future. ---------------- cor3ntin wrote:
```suggestion // Do not erase the typo-corrected result to avoid duplicated diagnostics. ``` https://github.com/llvm/llvm-project/pull/139374 _______________________________________________ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits