[all-commits] [llvm/llvm-project] 0d4594: Mark ATOMIC_VAR_INIT and ATOMIC_FLAG_INIT as depre...

Aaron Ballman via All-commits all-commits at lists.llvm.org
Tue Jan 18 10:42:18 PST 2022


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: 0d459444e5105d689e6388612784b89a93054944
      https://github.com/llvm/llvm-project/commit/0d459444e5105d689e6388612784b89a93054944
  Author: Aaron Ballman <aaron at aaronballman.com>
  Date:   2022-01-18 (Tue, 18 Jan 2022)

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

  Log Message:
  -----------
  Mark ATOMIC_VAR_INIT and ATOMIC_FLAG_INIT as deprecated

C17 deprecated ATOMIC_VAR_INIT with the resolution of DR 485. C++
followed suit when adopting P0883R2 for C++20, but additionally chose
to deprecate ATOMIC_FLAG_INIT at the same time despite the macro still
being required in C. This patch marks both macros as deprecated when
appropriate to do so.




More information about the All-commits mailing list