[all-commits] [llvm/llvm-project] 59e052: [[clang::always_destroy]] attribute silences warn-...

ycdtosa via All-commits all-commits at lists.llvm.org
Tue Mar 26 05:38:53 PDT 2024


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: 59e052568e7d46cc0489269e3c76f53bb21941f5
      https://github.com/llvm/llvm-project/commit/59e052568e7d46cc0489269e3c76f53bb21941f5
  Author: ycdtosa <ycdtosa at users.noreply.github.com>
  Date:   2024-03-26 (Tue, 26 Mar 2024)

  Changed paths:
    M clang/docs/ReleaseNotes.rst
    M clang/include/clang/Basic/AttrDocs.td
    M clang/lib/Sema/SemaDeclCXX.cpp
    M clang/test/SemaCXX/warn-exit-time-destructors.cpp

  Log Message:
  -----------
  [[clang::always_destroy]] attribute silences warn-exit-time-destructor (#86486)

This attribute tells the compiler that the variable must have its exit-time
destructor run, so it makes sense that it would silence the warning telling
users that an exit-time destructor is required.

Fixes https://github.com/llvm/llvm-project/issues/68686



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