[all-commits] [llvm/llvm-project] 5ab944: [C2y] Add stdcountof.h (#140890)
Aaron Ballman via All-commits
all-commits at lists.llvm.org
Wed May 28 03:41:23 PDT 2025
Branch: refs/heads/main
Home: https://github.com/llvm/llvm-project
Commit: 5ab944a8c6a213beb96f3747a441b02e497732e4
https://github.com/llvm/llvm-project/commit/5ab944a8c6a213beb96f3747a441b02e497732e4
Author: Aaron Ballman <aaron at aaronballman.com>
Date: 2025-05-28 (Wed, 28 May 2025)
Changed paths:
M clang/docs/ReleaseNotes.rst
M clang/lib/Headers/CMakeLists.txt
M clang/lib/Headers/module.modulemap
A clang/lib/Headers/stdcountof.h
M clang/lib/Lex/ModuleMap.cpp
M clang/lib/Lex/PPDirectives.cpp
M clang/test/C/C2y/n3469.c
M clang/test/Modules/Inputs/builtin-headers/system-modules.modulemap
M clang/test/Modules/builtin-headers.mm
Log Message:
-----------
[C2y] Add stdcountof.h (#140890)
WG14 N3469 changed _Lengthof to _Countof but it also introduced the
<stdcountof.h> header to expose a macro with a non-ugly identifier. GCC
vends this header as part of the compiler implementation, so Clang
should do the same.
Suggested-by: Alejandro Colomar <alx at kernel.org>
To unsubscribe from these emails, change your notification settings at https://github.com/llvm/llvm-project/settings/notifications
More information about the All-commits
mailing list