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

Aaron Ballman via cfe-commits cfe-commits at lists.llvm.org
Mon Feb 10 09:48:01 PST 2025


================
@@ -2624,6 +2648,9 @@ bool Sema::DiagnoseEmptyLookup(Scope *S, CXXScopeSpec &SS, LookupResult &R,
   }
   R.clear();
 
+  if (isFunctionLikeMacro(Name, SemaRef, R.getNameLoc()))
----------------
AaronBallman wrote:

```suggestion
  if (diagnoseFunctionLikeMacro(SemaRef, Name, R.getNameLoc()))
```

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


More information about the cfe-commits mailing list