[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
Tue Feb 11 09:37:34 PST 2025
================
@@ -2347,6 +2347,27 @@ Sema::BuildDeclRefExpr(ValueDecl *D, QualType Ty, ExprValueKind VK,
return E;
}
+// Check whether a similar function-like macro exists and suggest it
+static bool isFunctionLikeMacro(const DeclarationName &Name, Sema &SemaRef,
+ const SourceLocation &TypoLoc) {
----------------
AaronBallman wrote:
It will do it for you, I'm just used to having to point it out. :-)
https://github.com/llvm/llvm-project/pull/123495
More information about the cfe-commits
mailing list