llvm-project/libcxx
Stephan T. Lavavej aec1876601 [libcxx] [test] Fix string_view tests.
test/std/strings/string.view/string.view.ops/compare.pointer_size.pass.cpp
Passing -1 to size_t triggers signed/unsigned mismatch warnings because it's
a value-modifying conversion. Add static_cast<size_t> to soothe the compiler.
(This file refers to size_t unqualified.)

test/std/strings/string.view/string.view.ops/substr.pass.cpp
Add <algorithm> for std::min() and <stdexcept> for std::out_of_range.

N4618 21.4.2.4 [string.view.access]/1: "Requires: pos < size()."
/4: "[ Note: Unlike basic_string::operator[], basic_string_view::operator[](size())
has undefined behavior instead of returning charT(). -end note ]"

Fixes D27633.

llvm-svn: 289283
2016-12-09 22:35:53 +00:00
..
benchmarks Optimize filesystem::path by providing weaker exception guarantees. 2016-10-31 02:46:25 +00:00
cmake Put C++ ABI headers in a special build directory instead of the top level. 2016-12-09 09:31:01 +00:00
docs Update doc version to 4.0 2016-12-09 12:33:49 +00:00
include Fix missing const on set::count. Patch from Andrey Khalyavin 2016-12-09 12:17:31 +00:00
lib Update darwin ABI list for <variant> 2016-12-02 23:14:18 +00:00
src Make variant's index part of the hash value 2016-12-02 23:38:31 +00:00
test [libcxx] [test] Fix string_view tests. 2016-12-09 22:35:53 +00:00
utils Make LIBCXX_ENABLE_STATIC_ABI_LIBRARY merge libc++.a and libc++abi.a 2016-11-18 19:53:45 +00:00
www Update status page for variant implementation 2016-12-04 22:14:53 +00:00
.arcconfig Upgrade arcconfig to use https 2016-07-18 02:02:49 +00:00
.clang-format fix misspelling in .clang-format 2016-12-09 03:18:45 +00:00
.gitignore Implement N4606 optional 2016-10-12 07:46:20 +00:00
CMakeLists.txt [libc++] Add _LIBCPP_DISABLE_VISIBILITY_ANNOTATIONS 2016-12-05 19:40:12 +00:00
CREDITS.TXT Add entry to CREDITS.TXT for propagate_const 2016-06-19 19:36:28 +00:00
LICENSE.TXT Update copyright year to 2016. 2016-03-30 22:39:53 +00:00
TODO.TXT Remove out of date items in TODO.txt 2016-09-27 01:28:47 +00:00