[clang] [clang][Sema] Handle alloc_align on all HasFunctionProto declarations (PR #210871)

Erich Keane via cfe-commits cfe-commits at lists.llvm.org
Wed Jul 29 16:48:59 PDT 2026


================
@@ -77,6 +82,33 @@ inline const ParmVarDecl *getFunctionOrMethodParam(const Decl *D,
     return MD->getParamDecl(Idx);
   if (const auto *BD = dyn_cast<BlockDecl>(D))
     return BD->getParamDecl(Idx);
+
+  // Handle declarations that do not directly own parameters but have an
----------------
erichkeane wrote:

I am not sure about all the TypeSourceInfo/TypeLoc types, but this seems like a reasonable list?  I can't think of any we are missing?

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


More information about the cfe-commits mailing list