[all-commits] [llvm/llvm-project] c6fed7: [diag] Silence `-Wfixed-enum-extension` in C23 (#6...

Shoaib Meenai via All-commits all-commits at lists.llvm.org
Tue Oct 3 13:04:36 PDT 2023


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: c6fed74f6f2e0c208ea0324fa1668b2cba5277a9
      https://github.com/llvm/llvm-project/commit/c6fed74f6f2e0c208ea0324fa1668b2cba5277a9
  Author: Shoaib Meenai <smeenai at fb.com>
  Date:   2023-10-03 (Tue, 03 Oct 2023)

  Changed paths:
    M clang/docs/ReleaseNotes.rst
    M clang/lib/Parse/ParseDecl.cpp
    M clang/test/Sema/fixed-enum.c

  Log Message:
  -----------
  [diag] Silence `-Wfixed-enum-extension` in C23 (#68060)

The C23 standard supports enums with fixed underlying types (N3030 [1]),
so we shouldn't emit `-Wfixed-enum-extension` in C23 mode (since it's no
longer a Clang extension at that point).

[1]
https://thephd.dev/_vendor/future_cxx/papers/C%20-%20Enhanced%20Enumerations.html




More information about the All-commits mailing list