[PATCH] D31856: Headers: Make the type of SIZE_MAX the same as size_t
Duncan P. N. Exon Smith via Phabricator via cfe-commits
cfe-commits at lists.llvm.org
Fri Apr 21 18:10:52 PDT 2017
dexonsmith updated this revision to Diff 96269.
dexonsmith added a comment.
Thanks Eli and Richard.
Given that, I've thrown in fixes for `INTMAX_MIN`, `INTMAX_MAX`, `UINTMAX_MAX`, `INTMAX_C()`, and `UINTMAX_C()`, as well as fixing the typedefs for `intptr_t`, `uintptr_t`, `intmax_t`, and `uintmax_t`.
For the static assert type tests, I've explicitly added RUN lines for all the targets tested in test/Preprocessor/stdint.c.
I left out removing `__INTPTR_WIDTH__`, etc., since I wondered if the CHECK lines for their values were useful on their own. We could kill those in a follow-up though.
https://reviews.llvm.org/D31856
Files:
clang/lib/Headers/stdint.h
clang/test/Headers/stdint-typeof-MINMAX.cpp
clang/test/Preprocessor/stdint.c
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D31856.96269.patch
Type: text/x-patch
Size: 13335 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/cfe-commits/attachments/20170422/f09ca59c/attachment-0001.bin>
More information about the cfe-commits
mailing list