[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:02 PST 2025
================
@@ -10855,6 +10857,8 @@ def err_undeclared_use_suggest : Error<
"use of undeclared %0; did you mean %1?">;
def err_undeclared_var_use_suggest : Error<
"use of undeclared identifier %0; did you mean %1?">;
+def err_undeclared_var_use_suggest_func_like_macro
+ : Error<"use of undeclared identifier %0; did you mean %0(...)?">;
----------------
AaronBallman wrote:
```suggestion
: Error<"%0 is defined as an object-like macro; did you mean '%0(...)'?">;
```
https://github.com/llvm/llvm-project/pull/123495
More information about the cfe-commits
mailing list