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/unord
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
..
unord.map Use TEST_STD_VER instead of __cplusplus [NFC] 7 years ago
unord.set Update tests -verify error messages after r300140. 9 years ago
key_value_traits.pass.cpp Rename <__hash_table> traits so they don't conflict with similar traits. 10 years ago
next_pow2.pass.cpp [libcxx] [test] Untabify, NFC. 8 years ago
next_prime.pass.cpp Fix some non-standard parts of our test suite. Reported by STL 10 years ago
non_const_comparator.fail.cpp [libc++] Improve diagnostics for non-const comparators and hashers in associative containers 7 years ago