[clang] [Clang] Accept [[clang::lifetimebound]] after a parameter's array brackets (PR #221627)
via cfe-commits
cfe-commits at lists.llvm.org
Mon Sep 7 01:19:09 PDT 2026
================
@@ -1,6 +1,7 @@
// RUN: %clang_cc1 -std=c2x -verify %s
int *ptr_param(int *param [[clang::lifetimebound]]);
+int *array_param(int param[4] [[clang::lifetimebound]]);
----------------
NeKon69 wrote:
Can you also add a test for GNU spelling here?
https://github.com/llvm/llvm-project/pull/221627
More information about the cfe-commits
mailing list