Marshall Clow
5a127cdcbf
Portability fix: add missing includes and static_casts. Reviewed as https://reviews.llvm.org/D55777 . Thanks to Andrey Maksimov for the patch.
...
llvm-svn: 349566
2018-12-18 23:19:00 +00:00
Zhihao Yuan
147b25b4a1
[libc++] Implement P0487R1 - Fixing operator>>(basic_istream&, CharT*)
...
Summary:
Avoid buffer overflow by replacing the pointer interface with an array reference interface in C++2a.
Tentatively ready on Batavia2018.
https://wg21.link/lwg2499
https://wg21.link/p0487
Reviewers: mclow.lists, ldionne, EricWF
Reviewed By: ldionne
Subscribers: libcxx-commits, cfe-commits, christof
Differential Revision: https://reviews.llvm.org/D51268
llvm-svn: 347377
2018-11-21 03:30:10 +00:00
Stephan T. Lavavej
eb0fa1c054
[libcxx] [test] Fix MSVC x64 truncation warning.
...
warning C4267: 'argument': conversion from 'size_t' to 'int', possible loss of data
Requesting post-commit review.
llvm-svn: 331575
2018-05-05 01:40:24 +00:00
Billy Robert O'Neal III
34ab26d62a
[libcxx] [test] Use the correct type from strlen. Include correct header.
...
llvm-svn: 329665
2018-04-10 03:04:07 +00:00
Stephan T. Lavavej
55467c4685
[libcxx] [test] Rename __c to ch. NFCI.
...
This improves readability and (theoretically) improves portability,
as __ugly names are reserved.
llvm-svn: 310759
2017-08-11 20:54:01 +00:00
Stephan T. Lavavej
14e60beb71
[libcxx] [test] Fix MSVC warning C4242 "conversion from 'int' to 'const char', possible loss of data".
...
Fixes D34534.
llvm-svn: 308532
2017-07-19 22:02:22 +00:00
Mehdi Amini
e9c66ad9fa
Add markup for libc++ dylib availability
...
Libc++ is used as a system library on macOS and iOS (amongst others). In order
for users to be able to compile a binary that is intended to be deployed to an
older version of the platform, clang provides the
availability attribute <https://clang.llvm.org/docs/AttributeReference.html#availability >_
that can be placed on declarations to describe the lifecycle of a symbol in the
library.
See docs/DesignDocs/AvailabilityMarkup.rst for more information.
Differential Revision: https://reviews.llvm.org/D31739
llvm-svn: 302172
2017-05-04 17:08:54 +00:00
Eric Fiselier
5a83710e37
Move test into test/std subdirectory.
...
llvm-svn: 224658
2014-12-20 01:40:03 +00:00