[all-commits] [llvm/llvm-project] 1a09cf: [Clang] counted_by attr can apply only to C99 flex...

Bill Wendling via All-commits all-commits at lists.llvm.org
Wed Nov 15 08:27:19 PST 2023


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: 1a09cfb2f35ddcb5d4ebe63be8eca74ea6ff4a0b
      https://github.com/llvm/llvm-project/commit/1a09cfb2f35ddcb5d4ebe63be8eca74ea6ff4a0b
  Author: Bill Wendling <5993918+bwendling at users.noreply.github.com>
  Date:   2023-11-15 (Wed, 15 Nov 2023)

  Changed paths:
    M clang/include/clang/Basic/DiagnosticSemaKinds.td
    M clang/lib/AST/DeclBase.cpp
    M clang/lib/Sema/SemaDeclAttr.cpp
    M clang/test/Sema/attr-counted-by.c

  Log Message:
  -----------
  [Clang] counted_by attr can apply only to C99 flexible array members (#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 */
  };

Authored-by: Bill Wendling <isanbard at gmail.com>




More information about the All-commits mailing list