[llvm-branch-commits] [libcxx] e1f8795 - [libc++][NFC] Don't rely on `<algorithm>` transitively including `<memory>` in tests
Tom Stellard via llvm-branch-commits
llvm-branch-commits at lists.llvm.org
Fri Aug 5 01:05:17 PDT 2022
Author: Igor Zhukov
Date: 2022-08-05T01:04:08-07:00
New Revision: e1f8795f90215091c1c12c9b1568a52e510ca74a
URL: https://github.com/llvm/llvm-project/commit/e1f8795f90215091c1c12c9b1568a52e510ca74a
DIFF: https://github.com/llvm/llvm-project/commit/e1f8795f90215091c1c12c9b1568a52e510ca74a.diff
LOG: [libc++][NFC] Don't rely on `<algorithm>` transitively including `<memory>` in tests
Found by @cpplearner (https://github.com/microsoft/STL/pull/2976#discussion_r935440806)
Differential Revision: https://reviews.llvm.org/D130997
(cherry picked from commit 495519e5f8232d144ed26e9c18dbcbac6a5f25eb)
Added:
Modified:
libcxx/test/std/algorithms/ranges_result_alias_declarations.compile.pass.cpp
Removed:
################################################################################
diff --git a/libcxx/test/std/algorithms/ranges_result_alias_declarations.compile.pass.cpp b/libcxx/test/std/algorithms/ranges_result_alias_declarations.compile.pass.cpp
index 870fe1a9cf13a..7198a3408e281 100644
--- a/libcxx/test/std/algorithms/ranges_result_alias_declarations.compile.pass.cpp
+++ b/libcxx/test/std/algorithms/ranges_result_alias_declarations.compile.pass.cpp
@@ -14,6 +14,7 @@
// ensure that all result alias declarations are defined
#include <algorithm>
+#include <memory>
#include <type_traits>
using namespace std::ranges;
More information about the llvm-branch-commits
mailing list