You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
This repo is archived. You can view files and clone it, but cannot push or open issues/pull-requests.
libcxx_old/test/libcxx/containers/associative
Louis Dionne 5fe0a6a0bc [libc++] Improve diagnostics for non-const comparators and hashers in associative containers
Summary:
When providing a non-const-callable comparator in a map or set, the
warning diagnostic does not include the point of instantiation of
the container that triggered the warning, which makes it difficult
to track down the problem. This commit improves the diagnostic by
placing it directly in the body of the associative container.

The same change is applied to unordered associative containers, which
had a similar problem.

Finally, this commit cleans up the forward declarations of several
map and unordered_map helpers, which are not needed anymore.

<rdar://problem/41370747>

Reviewers: EricWF, mclow.lists

Subscribers: christof, dexonsmith, llvm-commits

Differential Revision: https://reviews.llvm.org/D48955

git-svn-id: https://llvm.org/svn/llvm-project/libcxx/trunk@348529 91177308-0d34-0410-b5e6-96231b3b80d8
7 years ago
..
map Move remaining _LIBCPP_VERSION tests into test/libcxx 10 years ago
set Move remaining _LIBCPP_VERSION tests into test/libcxx 10 years ago
non_const_comparator.fail.cpp [libc++] Improve diagnostics for non-const comparators and hashers in associative containers 7 years ago
tree_balance_after_insert.pass.cpp Fix undefined behavior in __tree 9 years ago
tree_key_value_traits.pass.cpp Cleanup node-type handling in the associative containers. 10 years ago
tree_left_rotate.pass.cpp Fix undefined behavior in __tree 9 years ago
tree_remove.pass.cpp Fix undefined behavior in __tree 9 years ago
tree_right_rotate.pass.cpp Fix undefined behavior in __tree 9 years ago
undef_min_max.pass.cpp test: fix test under Windows 9 years ago