[clang] [clang][Sema] Add diagnostic note for reference of function-like macros requiring without parentheses (PR #123495)

via cfe-commits cfe-commits at lists.llvm.org
Mon Jan 20 14:35:02 PST 2025


================
@@ -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
----------------
Sirraide wrote:

Hmm, that sounds weird because I don’t think we should be doing any typo correction of `notFound` to `var1` here. That said, I’m not too familiar w/ typo correction myself.

https://github.com/llvm/llvm-project/pull/123495


More information about the cfe-commits mailing list