[libcxx-commits] [libcxx] [libc++] Remove unused pair.h include from hypot.h (PR #106798)
Louis Dionne via libcxx-commits
libcxx-commits at lists.llvm.org
Tue Sep 3 10:22:54 PDT 2024
https://github.com/ldionne updated https://github.com/llvm/llvm-project/pull/106798
>From 8d8a13d4e20d313413b396f9117b301c26429c7c Mon Sep 17 00:00:00 2001
From: Louis Dionne <ldionne.2 at gmail.com>
Date: Fri, 30 Aug 2024 16:06:04 -0400
Subject: [PATCH 1/2] [libc++] Remove unused pair.h include from hypot.h
This was added in #100820 by mistake since the final version of
that PR didn't depend on std::pair anymore.
---
libcxx/include/__math/hypot.h | 1 -
1 file changed, 1 deletion(-)
diff --git a/libcxx/include/__math/hypot.h b/libcxx/include/__math/hypot.h
index b992163711010a..2c2c9c38ab5302 100644
--- a/libcxx/include/__math/hypot.h
+++ b/libcxx/include/__math/hypot.h
@@ -18,7 +18,6 @@
#include <__type_traits/is_arithmetic.h>
#include <__type_traits/is_same.h>
#include <__type_traits/promote.h>
-#include <__utility/pair.h>
#include <limits>
#if !defined(_LIBCPP_HAS_NO_PRAGMA_SYSTEM_HEADER)
>From ad7bba699cf6bd477448830d8857517a6bb20494 Mon Sep 17 00:00:00 2001
From: Louis Dionne <ldionne.2 at gmail.com>
Date: Tue, 3 Sep 2024 13:22:41 -0400
Subject: [PATCH 2/2] Fix transitive include
---
libcxx/test/libcxx/transitive_includes/cxx03.csv | 1 -
libcxx/test/libcxx/transitive_includes/cxx11.csv | 1 -
libcxx/test/libcxx/transitive_includes/cxx14.csv | 1 -
libcxx/test/libcxx/transitive_includes/cxx17.csv | 1 -
libcxx/test/libcxx/transitive_includes/cxx20.csv | 1 -
libcxx/test/libcxx/transitive_includes/cxx23.csv | 1 -
libcxx/test/libcxx/transitive_includes/cxx26.csv | 1 -
7 files changed, 7 deletions(-)
diff --git a/libcxx/test/libcxx/transitive_includes/cxx03.csv b/libcxx/test/libcxx/transitive_includes/cxx03.csv
index fd2cd7f1c2d961..fd47c65ffc3075 100644
--- a/libcxx/test/libcxx/transitive_includes/cxx03.csv
+++ b/libcxx/test/libcxx/transitive_includes/cxx03.csv
@@ -132,7 +132,6 @@ chrono vector
chrono version
cinttypes cstdint
cmath cstddef
-cmath cstdint
cmath initializer_list
cmath limits
cmath type_traits
diff --git a/libcxx/test/libcxx/transitive_includes/cxx11.csv b/libcxx/test/libcxx/transitive_includes/cxx11.csv
index 04122fd0f4571a..347d5d87966879 100644
--- a/libcxx/test/libcxx/transitive_includes/cxx11.csv
+++ b/libcxx/test/libcxx/transitive_includes/cxx11.csv
@@ -132,7 +132,6 @@ chrono vector
chrono version
cinttypes cstdint
cmath cstddef
-cmath cstdint
cmath initializer_list
cmath limits
cmath type_traits
diff --git a/libcxx/test/libcxx/transitive_includes/cxx14.csv b/libcxx/test/libcxx/transitive_includes/cxx14.csv
index 42c742bead0c1f..57bb2f25b3d62f 100644
--- a/libcxx/test/libcxx/transitive_includes/cxx14.csv
+++ b/libcxx/test/libcxx/transitive_includes/cxx14.csv
@@ -133,7 +133,6 @@ chrono vector
chrono version
cinttypes cstdint
cmath cstddef
-cmath cstdint
cmath initializer_list
cmath limits
cmath type_traits
diff --git a/libcxx/test/libcxx/transitive_includes/cxx17.csv b/libcxx/test/libcxx/transitive_includes/cxx17.csv
index bc0659127d4bf5..6826aeb75a83ba 100644
--- a/libcxx/test/libcxx/transitive_includes/cxx17.csv
+++ b/libcxx/test/libcxx/transitive_includes/cxx17.csv
@@ -133,7 +133,6 @@ chrono vector
chrono version
cinttypes cstdint
cmath cstddef
-cmath cstdint
cmath initializer_list
cmath limits
cmath type_traits
diff --git a/libcxx/test/libcxx/transitive_includes/cxx20.csv b/libcxx/test/libcxx/transitive_includes/cxx20.csv
index fed0944f0219c4..17169e385d544f 100644
--- a/libcxx/test/libcxx/transitive_includes/cxx20.csv
+++ b/libcxx/test/libcxx/transitive_includes/cxx20.csv
@@ -138,7 +138,6 @@ chrono vector
chrono version
cinttypes cstdint
cmath cstddef
-cmath cstdint
cmath initializer_list
cmath limits
cmath type_traits
diff --git a/libcxx/test/libcxx/transitive_includes/cxx23.csv b/libcxx/test/libcxx/transitive_includes/cxx23.csv
index 53f99384a7f573..267dca3cc6c414 100644
--- a/libcxx/test/libcxx/transitive_includes/cxx23.csv
+++ b/libcxx/test/libcxx/transitive_includes/cxx23.csv
@@ -85,7 +85,6 @@ chrono vector
chrono version
cinttypes cstdint
cmath cstddef
-cmath cstdint
cmath initializer_list
cmath limits
cmath version
diff --git a/libcxx/test/libcxx/transitive_includes/cxx26.csv b/libcxx/test/libcxx/transitive_includes/cxx26.csv
index 53f99384a7f573..267dca3cc6c414 100644
--- a/libcxx/test/libcxx/transitive_includes/cxx26.csv
+++ b/libcxx/test/libcxx/transitive_includes/cxx26.csv
@@ -85,7 +85,6 @@ chrono vector
chrono version
cinttypes cstdint
cmath cstddef
-cmath cstdint
cmath initializer_list
cmath limits
cmath version
More information about the libcxx-commits
mailing list