[libcxx-commits] [libcxx] [libc++] Partially implement P2846R6: `reserve_hint` (PR #206385)

Nikolas Klauser via libcxx-commits libcxx-commits at lists.llvm.org
Thu Aug 13 06:40:17 PDT 2026


================
@@ -25,7 +20,8 @@ AST_MATCHER(clang::CallExpr, isOperator) { return llvm::isa<clang::CXXOperatorCa
 
 AST_MATCHER(clang::UnresolvedLookupExpr, isCustomizationPoint) {
   return std::ranges::any_of(
-      std::array{"swap", "make_error_code", "make_error_condition", "begin", "end", "size", "rend", "rbegin"},
+      std::array{
+          "swap", "make_error_code", "make_error_condition", "begin", "end", "size", "rend", "rbegin", "reserve_hint"},
----------------
philnik777 wrote:

The clang-tidy check should instead be disabled in the one place ADL is supposed to happen. This list should probably only contain `swap`, since that's ADL-called throughout the library, unlike the rest.

https://github.com/llvm/llvm-project/pull/206385


More information about the libcxx-commits mailing list