[all-commits] [llvm/llvm-project] 061741: [C2x] Implement support for revised spelling of ke...

Aaron Ballman via All-commits all-commits at lists.llvm.org
Sat Feb 25 06:30:28 PST 2023

  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: 06174134e418251982d43eff9385674b7644007f
  Author: Aaron Ballman <aaron at aaronballman.com>
  Date:   2023-02-25 (Sat, 25 Feb 2023)

  Changed paths:
    M clang/docs/ReleaseNotes.rst
    M clang/include/clang/Basic/DiagnosticParseKinds.td
    M clang/lib/Headers/stdalign.h
    M clang/lib/Parse/ParseDecl.cpp
    M clang/lib/Parse/ParseDeclCXX.cpp
    M clang/lib/Parse/ParseExpr.cpp
    A clang/test/C/C2x/n2934.c
    M clang/www/c_status.html

  Log Message:
  [C2x] Implement support for revised spelling of keywords

This implements WG14 N2934
(https://www.open-std.org/jtc1/sc22/wg14/www/docs/n2934.pdf), which
adds keywords for alignas, alignof, bool, static_assert, and
thread_local in C, as aliases for _Alignas, _Alignof, _Bool,
_Static_assert, and _Thread_local. We already supported the keywords in
C2x mode, but this completes support by adding pre-C2x compat warnings
and updates the stdalign.h header in freestanding mode.

More information about the All-commits mailing list