[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 04:33:04 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
----------------
StarOne01 wrote:
I did try it, but in this case the function returns [here itself](https://github.com/llvm/llvm-project/blob/main/clang%2Flib%2FSema%2FSemaExpr.cpp#L2525-L2526) which is before giving up, maybe i could put the note inside this conditional?
https://github.com/llvm/llvm-project/pull/123495
More information about the cfe-commits
mailing list