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

Gábor Horváth via cfe-commits cfe-commits at lists.llvm.org
Thu Jul 16 03:25:07 PDT 2026


================
@@ -1072,6 +1116,64 @@ getAPINotesParameterSelectorCandidates(const Sema &S, const FunctionDecl *FD) {
   return Candidates;
 }
 
+static APINotesParameterSelectorSet
+makeParameterSelectorSet(ArrayRef<SmallVector<std::string, 4>> Selectors) {
+  APINotesParameterSelectorSet Set;
+  for (const SmallVector<std::string, 4> &Selector : Selectors)
----------------
Xazax-hun wrote:

You could use auto or `const SmallVectorImpl<std::string>&` to avoid mentioning the size. 

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


More information about the cfe-commits mailing list