[all-commits] [llvm/llvm-project] 8e24bc: [C23] Do not diagnose binary literals as an extens...

Aaron Ballman via All-commits all-commits at lists.llvm.org
Wed Feb 14 06:08:39 PST 2024


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: 8e24bc096dcd0013d802e59a45803c51796dec0a
      https://github.com/llvm/llvm-project/commit/8e24bc096dcd0013d802e59a45803c51796dec0a
  Author: Aaron Ballman <aaron at aaronballman.com>
  Date:   2024-02-14 (Wed, 14 Feb 2024)

  Changed paths:
    M clang/docs/ReleaseNotes.rst
    M clang/include/clang/Basic/DiagnosticGroups.td
    M clang/include/clang/Basic/DiagnosticLexKinds.td
    M clang/lib/Lex/LiteralSupport.cpp
    A clang/test/C/C2x/n2549.c
    M clang/test/Lexer/gnu-flags.c

  Log Message:
  -----------
  [C23] Do not diagnose binary literals as an extension (#81658)

We previously would diagnose them as a GNU extension in C mode, but they
are now a feature of C23. The -Wgnu-binary-literal warning group no
longer controls any diagnostics as this is no longer a GNU extension.
The warning group is retained as a noop to help avoid "unknown warning"
diagnostics.

This also adds the companion compatibility warning which existed for C++
but not for C.

Fixes https://github.com/llvm/llvm-project/issues/72017




More information about the All-commits mailing list