[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
https://github.com/NeKon69 commented:
One question that still needs an answer is: Do we even need to change this? As far as I know this is the expected behavior for all c++11 attribute spellings. If you want to apply any attribute to an array parameter you would write this instead:
```cpp
int *f([[clang::lifetimebound]] const char (&s)[4]);
```
https://github.com/llvm/llvm-project/pull/221627
More information about the cfe-commits
mailing list