[clang] [Clang] counted_by attr can apply only to C99 flexible array members (PR #72347)

2023-11-15 Thread Bill Wendling via cfe-commits
https://github.com/bwendling closed https://github.com/llvm/llvm-project/pull/72347 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [Clang] counted_by attr can apply only to C99 flexible array members (PR #72347)

2023-11-15 Thread Kees Cook via cfe-commits
https://github.com/kees approved this pull request. Yes, this looks correct. We don't want to let this feature leak into the "fake" flex array logic. https://github.com/llvm/llvm-project/pull/72347 ___ cfe-commits mailing list

[clang] [Clang] counted_by attr can apply only to C99 flexible array members (PR #72347)

2023-11-14 Thread via cfe-commits
llvmbot wrote: @llvm/pr-subscribers-clang Author: Bill Wendling (bwendling) Changes Ensure that we're dealing only with C99 flexible array members. I.e. ones with incomplete types: struct s { int count; char array[]; /* note: no size specified */ }; --- Full diff:

[clang] [Clang] counted_by attr can apply only to C99 flexible array members (PR #72347)

2023-11-14 Thread Bill Wendling via cfe-commits
https://github.com/bwendling created https://github.com/llvm/llvm-project/pull/72347 Ensure that we're dealing only with C99 flexible array members. I.e. ones with incomplete types: struct s { int count; char array[]; /* note: no size specified */ }; >From