[PATCH] D26596: [RFC] Add _LIBCPP_NO_DISCARD and apply it to `Container::empty()`, `unique_ptr<T>::release()`, and `Lockable::try_lock()`
Eric Fiselier via cfe-commits
cfe-commits at lists.llvm.org
Sun Nov 13 16:56:46 PST 2016
EricWF updated this revision to Diff 77762.
EricWF added a comment.
- Apply no-discard to `string_view::empty()` and friends.
- Fix discarded use of `unique_ptr<T>::release()` within libc++.
https://reviews.llvm.org/D26596
Files:
docs/UsingLibcxx.rst
include/__config
include/__hash_table
include/__mutex_base
include/deque
include/forward_list
include/list
include/locale
include/map
include/memory
include/mutex
include/set
include/shared_mutex
include/string
include/string_view
include/unordered_map
include/unordered_set
include/vector
test/libcxx/containers/no-discard-disable.fail.cpp
test/libcxx/containers/no-discard.fail.cpp
test/libcxx/test/config.py
test/libcxx/thread/thread.mutex/try_lock_no_discard.fail.cpp
test/libcxx/thread/thread.mutex/try_lock_no_discard_disabled.fail.cpp
test/libcxx/utilities/memory/unique.ptr/unique.ptr.runtime/unique.ptr.runtime.modifiers/release.fail.cpp
test/libcxx/utilities/memory/unique.ptr/unique.ptr.single/unique.ptr.single.modifiers/release.fail.cpp
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D26596.77762.patch
Type: text/x-patch
Size: 42129 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/cfe-commits/attachments/20161114/5d53183f/attachment-0001.bin>
More information about the cfe-commits
mailing list