[all-commits] [llvm/llvm-project] 3cfa32: Undeprecate ATOMIC_FLAG_INIT in C++

Aaron Ballman via All-commits all-commits at lists.llvm.org
Tue Jul 12 03:50:47 PDT 2022


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: 3cfa32a71ecfbc1bf993358e32b916cf3483299f
      https://github.com/llvm/llvm-project/commit/3cfa32a71ecfbc1bf993358e32b916cf3483299f
  Author: Aaron Ballman <aaron at aaronballman.com>
  Date:   2022-07-12 (Tue, 12 Jul 2022)

  Changed paths:
    M clang/docs/ReleaseNotes.rst
    M clang/lib/Headers/stdatomic.h
    M clang/test/Headers/stdatomic-deprecations.c

  Log Message:
  -----------
  Undeprecate ATOMIC_FLAG_INIT in C++

C++20 deprecated ATOMIC_FLAG_INIT thinking it was deprecated in C when it
wasn't. It is expected to be undeprecated in C++23 as part of LWG3659
(https://wg21.link/LWG3659), which is currently Tentatively Ready.

This handles the case where the user includes <stdatomic.h> in C++ code in a
freestanding compile mode. The corollary libc++ changes are in
1544d1f9fdb115782202d72ad200c3f93b2c4f5a.




More information about the All-commits mailing list