[libcxx-commits] [PATCH] D133252: [NFC][libc++][random] Removes transitive includes.
Mark de Wever via Phabricator via libcxx-commits
libcxx-commits at lists.llvm.org
Sat Sep 3 10:25:20 PDT 2022
Mordante updated this revision to Diff 457802.
Mordante added a comment.
Fixes CI.
Repository:
rG LLVM Github Monorepo
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D133252/new/
https://reviews.llvm.org/D133252
Files:
libcxx/include/random
libcxx/test/std/numerics/rand/rand.adapt/rand.adapt.disc/ctor_engine_move.pass.cpp
libcxx/test/std/numerics/rand/rand.adapt/rand.adapt.ibits/ctor_engine_move.pass.cpp
libcxx/test/std/numerics/rand/rand.adapt/rand.adapt.shuf/ctor_engine_move.pass.cpp
libcxx/test/std/numerics/rand/rand.dist/rand.dist.norm/rand.dist.norm.t/min.pass.cpp
Index: libcxx/test/std/numerics/rand/rand.dist/rand.dist.norm/rand.dist.norm.t/min.pass.cpp
===================================================================
--- libcxx/test/std/numerics/rand/rand.dist/rand.dist.norm/rand.dist.norm.t/min.pass.cpp
+++ libcxx/test/std/numerics/rand/rand.dist/rand.dist.norm/rand.dist.norm.t/min.pass.cpp
@@ -14,7 +14,9 @@
// result_type min() const;
#include <random>
+
#include <cassert>
+#include <cmath>
#include "test_macros.h"
Index: libcxx/test/std/numerics/rand/rand.adapt/rand.adapt.shuf/ctor_engine_move.pass.cpp
===================================================================
--- libcxx/test/std/numerics/rand/rand.adapt/rand.adapt.shuf/ctor_engine_move.pass.cpp
+++ libcxx/test/std/numerics/rand/rand.adapt/rand.adapt.shuf/ctor_engine_move.pass.cpp
@@ -14,7 +14,9 @@
// explicit shuffle_order_engine(const Engine& e);
#include <random>
+
#include <cassert>
+#include <utility>
#include "test_macros.h"
Index: libcxx/test/std/numerics/rand/rand.adapt/rand.adapt.ibits/ctor_engine_move.pass.cpp
===================================================================
--- libcxx/test/std/numerics/rand/rand.adapt/rand.adapt.ibits/ctor_engine_move.pass.cpp
+++ libcxx/test/std/numerics/rand/rand.adapt/rand.adapt.ibits/ctor_engine_move.pass.cpp
@@ -14,7 +14,9 @@
// explicit independent_bits_engine(const Engine& e);
#include <random>
+
#include <cassert>
+#include <utility>
#include "test_macros.h"
Index: libcxx/test/std/numerics/rand/rand.adapt/rand.adapt.disc/ctor_engine_move.pass.cpp
===================================================================
--- libcxx/test/std/numerics/rand/rand.adapt/rand.adapt.disc/ctor_engine_move.pass.cpp
+++ libcxx/test/std/numerics/rand/rand.adapt/rand.adapt.disc/ctor_engine_move.pass.cpp
@@ -15,6 +15,7 @@
#include <random>
#include <cassert>
+#include <utility>
#include "test_macros.h"
Index: libcxx/include/random
===================================================================
--- libcxx/include/random
+++ libcxx/include/random
@@ -1721,16 +1721,6 @@
// standard-mandated includes
#include <initializer_list>
-#include <cmath> // for backward compatibility; TODO remove it
-#include <cstddef> // for backward compatibility; TODO remove it
-#include <cstdint> // for backward compatibility; TODO remove it
-#include <iosfwd> // for backward compatibility; TODO remove it
-#include <limits> // for backward compatibility; TODO remove it
-#include <numeric> // for backward compatibility; TODO remove it
-#include <string> // for backward compatibility; TODO remove it
-#include <type_traits> // for backward compatibility; TODO remove it
-#include <vector> // for backward compatibility; TODO remove it
-
#if !defined(_LIBCPP_HAS_NO_PRAGMA_SYSTEM_HEADER)
# pragma GCC system_header
#endif
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D133252.457802.patch
Type: text/x-patch
Size: 2867 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/libcxx-commits/attachments/20220903/14c79df3/attachment.bin>
More information about the libcxx-commits
mailing list