[all-commits] [llvm/llvm-project] 0b91d7: [libc] Use __attribute__((__nothrow__)) for __NOEX...

Roland McGrath via All-commits all-commits at lists.llvm.org
Tue Dec 17 12:18:58 PST 2024


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: 0b91d77bf4e4ff65ebeed90acd141018d9889e0f
      https://github.com/llvm/llvm-project/commit/0b91d77bf4e4ff65ebeed90acd141018d9889e0f
  Author: Roland McGrath <mcgrathr at google.com>
  Date:   2024-12-17 (Tue, 17 Dec 2024)

  Changed paths:
    M libc/include/__llvm-libc-common.h

  Log Message:
  -----------
  [libc] Use __attribute__((__nothrow__)) for __NOEXCEPT in C (#114653)

Consistent with glibc headers, where `noexcept` is used in C++
(or `throw()` in older C++ which llvm-libc doesn't support) in
the public function declarations, `__attribute__((__nothrow__))` is
used in C for compilers that support it.



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