[all-commits] [llvm/llvm-project] 8b29c0: [clang] Permit lifetimebound in all language modes...

Gábor Horváth via All-commits all-commits at lists.llvm.org
Fri Nov 8 07:05:37 PST 2024


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: 8b29c05b73310bba3d7abd007dbbd839c46b0ab4
      https://github.com/llvm/llvm-project/commit/8b29c05b73310bba3d7abd007dbbd839c46b0ab4
  Author: Gábor Horváth <xazax.hun at gmail.com>
  Date:   2024-11-08 (Fri, 08 Nov 2024)

  Changed paths:
    M clang/include/clang/Basic/Attr.td
    A clang/test/Sema/attr-lifetimebound.c

  Log Message:
  -----------
  [clang] Permit lifetimebound in all language modes (#115482)

Lifetimebound annotations can help diagnose common cases of dangling
including escaping the address of a stack variable from a function. This
is useful in all C family languages, restricting these diagnostics to
C++ is an artificial limitation.

Co-authored-by: Gabor Horvath <gaborh at apple.com>



To unsubscribe from these emails, change your notification settings at https://github.com/llvm/llvm-project/settings/notifications


More information about the All-commits mailing list