================
@@ -2509,6 +2509,20 @@ bool Sema::DiagnoseEmptyLookup(Scope *S, CXXScopeSpec
&SS, LookupResult &R,
DC = DC->getLookupParent();
}
+ // Check whether a similar function-like macro exists and suggest it
----------------
Fznamznon wrote:
> I did try it, but in this case the function returns here itself
I'm not sure I understand what it is the problem with this return? It should
happen when a typo replacement has been found, which seems not the case for the
originally reported case, see https://godbolt.org/z/br9n6eGsT .
Could you please elaborate a bit more?
Because that
> Instead of doing this here before typo correction, the note that this pr adds
> should probably just be emitted right after the error we emit at the very end
> of this function
Does seem like a correct soluion.
https://github.com/llvm/llvm-project/pull/123495
_______________________________________________
cfe-commits mailing list
[email protected]
https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits