Home
last modified time | relevance | path

Searched refs:_LIBCPP_ASSERT (Results 1 – 25 of 171) sorted by relevance

1234567

/external/libcxx/include/
Dspan218 …{ (void)__count; _LIBCPP_ASSERT(_Extent == __count, "size mismatch in span's constructor (ptr, len…
220 …{ (void)__l; _LIBCPP_ASSERT(_Extent == distance(__f, __l), "size mismatch in span's constructo…
231 …{ _LIBCPP_ASSERT(_Extent == _VSTD::size(__c), "size mismatch in span's constructor (container)"); }
238 …{ _LIBCPP_ASSERT(_Extent == _VSTD::size(__c), "size mismatch in span's constructor (const containe…
254 …: __data{__other.data()} { _LIBCPP_ASSERT(_Extent == __other.size(), "size mismatch in span's cons…
280_LIBCPP_ASSERT(__count >= 0 && __count <= size(), "Count out of range in span::first(count)");
287_LIBCPP_ASSERT(__count >= 0 && __count <= size(), "Count out of range in span::last(count)");
296 _LIBCPP_ASSERT(_Offset >= 0 && _Offset <= size(), "Offset out of range in span::subspan()");
305_LIBCPP_ASSERT( __offset >= 0 && __offset <= size(), "Offset out of range in span::subspan(offset,…
306_LIBCPP_ASSERT((__count >= 0 && __count <= size()) || __count == dynamic_extent, "Count out of r…
[all …]
Dstring_view233 // _LIBCPP_ASSERT(__len == 0 || __s != nullptr, "string_view::string_view(_CharT *, size_t)…
294 return _LIBCPP_ASSERT(!empty(), "string_view::front(): string is empty"), __data[0];
300 return _LIBCPP_ASSERT(!empty(), "string_view::back(): string is empty"), __data[__size-1];
310 _LIBCPP_ASSERT(__n <= size(), "remove_prefix() can't remove more than size()");
318 _LIBCPP_ASSERT(__n <= size(), "remove_suffix() can't remove more than size()");
396_LIBCPP_ASSERT(__s.size() == 0 || __s.data() != nullptr, "string_view::find(): received nullptr");
411 _LIBCPP_ASSERT(__n == 0 || __s != nullptr, "string_view::find(): received nullptr");
419 _LIBCPP_ASSERT(__s != nullptr, "string_view::find(): received nullptr");
428_LIBCPP_ASSERT(__s.size() == 0 || __s.data() != nullptr, "string_view::find(): received nullptr");
443 _LIBCPP_ASSERT(__n == 0 || __s != nullptr, "string_view::rfind(): received nullptr");
[all …]
D__debug31 #if _LIBCPP_DEBUG_LEVEL >= 1 && !defined(_LIBCPP_ASSERT)
32 # define _LIBCPP_ASSERT(x, m) ((x) ? (void)0 : \
38 #define _LIBCPP_DEBUG_ASSERT(x, m) _LIBCPP_ASSERT(x, m)
43 #ifndef _LIBCPP_ASSERT
44 # define _LIBCPP_ASSERT(x, m) ((void)0)
75 /// __libcpp_debug_function - The handler function called when a _LIBCPP_ASSERT
Dlist358 _LIBCPP_ASSERT(__get_const_db()->__dereferenceable(this),
367 _LIBCPP_ASSERT(__get_const_db()->__dereferenceable(this),
377 _LIBCPP_ASSERT(__get_const_db()->__dereferenceable(this),
390 _LIBCPP_ASSERT(__get_const_db()->__decrementable(this),
485 _LIBCPP_ASSERT(__get_const_db()->__dereferenceable(this),
494 _LIBCPP_ASSERT(__get_const_db()->__dereferenceable(this),
504 _LIBCPP_ASSERT(__get_const_db()->__dereferenceable(this),
517 _LIBCPP_ASSERT(__get_const_db()->__decrementable(this),
779 _LIBCPP_ASSERT(__alloc_traits::propagate_on_container_swap::value ||
973 _LIBCPP_ASSERT(!empty(), "list::front called on empty list");
[all …]
Darray308 _LIBCPP_ASSERT(false, "cannot call array<T, 0>::operator[] on a zero-sized array");
314 _LIBCPP_ASSERT(false, "cannot call array<T, 0>::operator[] on a zero-sized array");
332 _LIBCPP_ASSERT(false, "cannot call array<T, 0>::front() on a zero-sized array");
338 _LIBCPP_ASSERT(false, "cannot call array<T, 0>::front() on a zero-sized array");
344 _LIBCPP_ASSERT(false, "cannot call array<T, 0>::back() on a zero-sized array");
350 _LIBCPP_ASSERT(false, "cannot call array<T, 0>::back() on a zero-sized array");
/external/libcxx/src/
Ddebug.cpp180 _LIBCPP_ASSERT(i != nullptr, "iterator not found in debug database."); in __find_c_from_i()
349 _LIBCPP_ASSERT(p != nullptr, "debug mode internal logic error __find_c A"); in __find_c()
353 _LIBCPP_ASSERT(p != nullptr, "debug mode internal logic error __find_c B"); in __find_c()
379 _LIBCPP_ASSERT(p != nullptr, "debug mode internal logic error __erase_c A"); in __erase_c()
386 _LIBCPP_ASSERT(p != nullptr, "debug mode internal logic error __erase_c B"); in __erase_c()
492 _LIBCPP_ASSERT(p1 != nullptr, "debug mode internal logic error swap A"); in swap()
496 _LIBCPP_ASSERT(p1 != nullptr, "debug mode internal logic error swap B"); in swap()
500 _LIBCPP_ASSERT(p2 != nullptr, "debug mode internal logic error swap C"); in swap()
504 _LIBCPP_ASSERT(p2 != nullptr, "debug mode internal logic error swap D"); in swap()
613 _LIBCPP_ASSERT(r != end_, "debug mode internal logic error __c_node::__remove"); in __remove()
Dmutex.cpp47 _LIBCPP_ASSERT(ec == 0, "call to mutex::unlock failed"); in unlock()
63 _LIBCPP_ASSERT(e == 0, "call to ~recursive_mutex() failed"); in ~recursive_mutex()
79 _LIBCPP_ASSERT(e == 0, "call to recursive_mutex::unlock() failed"); in unlock()
/external/libcxx/test/std/containers/views/span.elem/
Dop_idx.pass.cpp29 _LIBCPP_ASSERT(noexcept(sp[idx]), ""); in testConstexprSpan()
30 _LIBCPP_ASSERT(noexcept(sp(idx)), ""); in testConstexprSpan()
42 _LIBCPP_ASSERT(noexcept(sp[idx]), ""); in testRuntimeSpan()
43 _LIBCPP_ASSERT(noexcept(sp(idx)), ""); in testRuntimeSpan()
/external/libcxx/include/experimental/
Dcoroutine119 _LIBCPP_ASSERT(__is_suspended(),
121 _LIBCPP_ASSERT(!done(),
128 _LIBCPP_ASSERT(__is_suspended(),
135 _LIBCPP_ASSERT(__is_suspended(),
/external/libcxx/test/libcxx/debug/
Ddebug_throw_register.pass.cpp33 _LIBCPP_ASSERT(false, "foo"); in main()
Ddebug_throw.pass.cpp32 _LIBCPP_ASSERT(false, "foo"); in main()
Ddebug_abort.pass.cpp34 _LIBCPP_ASSERT(false, "foo"); in main()
/external/libcxx/src/filesystem/
Ddirectory_iterator.cpp250 _LIBCPP_ASSERT(__imp_, "Attempting to increment an invalid iterator"); in __increment()
264 _LIBCPP_ASSERT(__imp_, "Attempting to dereference an invalid iterator"); in __dereference()
293 _LIBCPP_ASSERT(__imp_, "Popping the end iterator"); in __pop()
/external/libcxx/test/libcxx/strings/basic.string/string.modifiers/
Derase_pop_back_db1.pass.cpp15 #define _LIBCPP_ASSERT(x, m) ((x) ? (void)0 : std::exit(0)) macro
Dinsert_iter_size_char_db1.pass.cpp15 #define _LIBCPP_ASSERT(x, m) ((x) ? (void)0 : std::exit(0)) macro
Dinsert_iter_char_db1.pass.cpp15 #define _LIBCPP_ASSERT(x, m) ((x) ? (void)0 : std::exit(0)) macro
/external/libcxx/test/libcxx/containers/sequences/vector/
Dpop_back_empty.pass.cpp14 #define _LIBCPP_ASSERT(x, m) ((x) ? (void)0 : std::exit(0)) macro
/external/libcxx/test/libcxx/containers/sequences/deque/
Dpop_back_empty.pass.cpp14 #define _LIBCPP_ASSERT(x, m) ((x) ? (void)0 : std::exit(0)) macro
/external/libcxx/test/libcxx/containers/sequences/list/list.modifiers/
Dinsert_iter_rvalue_db1.pass.cpp18 #define _LIBCPP_ASSERT(x, m) ((x) ? (void)0 : std::exit(0)) macro
Dinsert_iter_value_db1.pass.cpp18 #define _LIBCPP_ASSERT(x, m) ((x) ? (void)0 : std::exit(0)) macro
Dinsert_iter_size_value_db1.pass.cpp18 #define _LIBCPP_ASSERT(x, m) ((x) ? (void)0 : std::exit(0)) macro
Derase_iter_db1.pass.cpp18 #define _LIBCPP_ASSERT(x, m) ((x) ? (void)0 : std::exit(0)) macro
/external/libcxx/test/libcxx/containers/sequences/list/list.ops/
Ddb_splice_pos_list.pass.cpp18 #define _LIBCPP_ASSERT(x, m) ((x) ? (void)0 : std::exit(0)) macro
Ddb_splice_pos_list_iter.pass.cpp18 #define _LIBCPP_ASSERT(x, m) ((x) ? (void)0 : std::exit(0)) macro
Ddb_splice_pos_list_iter_iter.pass.cpp18 #define _LIBCPP_ASSERT(x, m) ((x) ? (void)0 : std::exit(0)) macro

1234567