[clang] [APINotes] Diagnose invalid Where.Parameters selectors (PR #209408)

via cfe-commits cfe-commits at lists.llvm.org
Tue Jul 28 09:48:25 PDT 2026


================
@@ -1143,6 +1185,23 @@ void Sema::ProcessAPINotes(Decl *D) {
                   return Reader->lookupGlobalFunction(FD->getName(), Parameters,
                                                       APINotesContext);
                 });
+
+          if (ParameterSelectorCandidates &&
+              !Diags.isIgnored(diag::warn_apinotes_message,
----------------
StoeckOverflow wrote:

I agree. I mixed up the bookkeeping with the actual warning emission here. I will change this and add a  test for it.

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


More information about the cfe-commits mailing list