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

Gábor Horváth via cfe-commits cfe-commits at lists.llvm.org
Tue Jul 14 02:55:13 PDT 2026


================
@@ -788,6 +789,47 @@ bool clang::api_notes::parseAndDumpAPINotes(StringRef YI,
 namespace {
 using namespace api_notes;
 
+struct KnownFunctionSelector {
+  llvm::StringRef Name;
+  llvm::ArrayRef<llvm::StringRef> Parameters;
+};
+
+static bool equalParameterSelectors(llvm::ArrayRef<llvm::StringRef> LHS,
----------------
Xazax-hun wrote:

I think we should have `operator==` defined for `llvm::ArrayRef` so maybe this one is redundant?

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


More information about the cfe-commits mailing list