[all-commits] [llvm/llvm-project] 2d26fc: [libc++] Enable C++ stdatomic.h for all C++ versio...

Ryan Prichard via All-commits all-commits at lists.llvm.org
Thu Sep 19 06:44:16 PDT 2024


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: 2d26fc8c6c5015b77dc725695c1d957f412e4141
      https://github.com/llvm/llvm-project/commit/2d26fc8c6c5015b77dc725695c1d957f412e4141
  Author: Ryan Prichard <rprichard at google.com>
  Date:   2024-09-19 (Thu, 19 Sep 2024)

  Changed paths:
    M libcxx/include/atomic
    M libcxx/include/stdatomic.h
    A libcxx/test/libcxx/atomics/atomics.syn/compatible_with_stdatomic.compile.pass.cpp
    R libcxx/test/libcxx/atomics/atomics.syn/incompatible_with_stdatomic.verify.cpp
    R libcxx/test/libcxx/atomics/stdatomic.h.syn/dont_hijack_header.compile.pass.cpp

  Log Message:
  -----------
  [libc++] Enable C++ stdatomic.h for all C++ versions (#95498)

This extension is motivated by Android's use of libc++, where
<stdatomic.h> has redirected to <atomic> for many years, long before it
was standardized in C++23.

When libc++'s stdatomic.h is included in C translation units, delegate
to the next stdatomic.h, which could come from Clang or libc.



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