llvm-project/libcxx
Jonathan Wakely ef843c8271 [libc++] Fix ADL for `make_error_{code,condition}`
Implement LWG 3629, by making lookup for make_error_code and
make_error_condition only consider names found by ADL. This is achieved
by adding a block scope using-declaration for a function that will be
found by unqualified lookup, preventing unqualified lookup from
continuing to enclosing scopes (the class scope, then enclosing
namespaces). The function named by the using declaration is not
viable, so overload resolution must select a candidate found by ADL.

This fixes https://github.com/llvm/llvm-project/issues/57614

Differential Revision: https://reviews.llvm.org/D134943
2022-09-30 17:23:45 -04:00
..
benchmarks [libc++] Extend check for non-ASCII characters to src/, test/ and benchmarks/ 2022-08-23 18:36:38 -04:00
cmake [runtimes] Remove all traces of the legacy testing configuration system 2022-09-30 15:03:33 -04:00
docs [libc++] Fix ADL for `make_error_{code,condition}` 2022-09-30 17:23:45 -04:00
include [libc++] Fix ADL for `make_error_{code,condition}` 2022-09-30 17:23:45 -04:00
lib [libc++] Rename __libcpp_assertion_handler to __libcpp_verbose_abort 2022-07-29 13:52:42 -04:00
src [libc++] Remove MSVC code 2022-09-20 10:11:42 +02:00
test [libc++] Fix ADL for `make_error_{code,condition}` 2022-09-30 17:23:45 -04:00
utils [runtimes] Remove all traces of the legacy testing configuration system 2022-09-30 15:03:33 -04:00
.clang-format [libc++][NFC] Rename the constexpr macros 2022-08-19 15:35:02 +02:00
.clang-tidy [libc++] Make the naming of private member variables consistent and enforce it through readability-identifier-naming 2022-09-02 21:36:36 +02:00
.gitignore
CMakeLists.txt [libcxx] Support LIBCXX_STATICALLY_LINK_ABI_IN_STATIC_LIBRARY + LIBCXX_ENABLE_ABI_LINKER_SCRIPT 2022-09-27 10:04:54 +02:00
CREDITS.TXT Microsoft's floating-point to_chars powered by Ryu and Ryu Printf 2021-12-12 16:34:50 +01:00
LICENSE.TXT
TODO.TXT [libc++] Disallow volatile types in std::allocator 2021-09-22 11:47:38 -04:00
appveyor-reqs-install.cmd
appveyor.yml [libc++] Re-apply "Always build c++experimental.a"" 2022-07-19 10:44:19 -04:00