[libcxx-commits] [libcxx] d9019d4 - [libc++] Remove unused pair.h include from hypot.h (#106798)

via libcxx-commits libcxx-commits at lists.llvm.org
Wed Sep 4 08:17:35 PDT 2024


Author: Louis Dionne
Date: 2024-09-04T11:17:32-04:00
New Revision: d9019d478d40b4e8766efccdb3eb1ff77cdbfaec

URL: https://github.com/llvm/llvm-project/commit/d9019d478d40b4e8766efccdb3eb1ff77cdbfaec
DIFF: https://github.com/llvm/llvm-project/commit/d9019d478d40b4e8766efccdb3eb1ff77cdbfaec.diff

LOG: [libc++] Remove unused pair.h include from hypot.h (#106798)

This was added in #100820 by mistake since the final version of that PR
didn't depend on std::pair anymore.

Added: 
    

Modified: 
    libcxx/include/__math/hypot.h
    libcxx/test/libcxx/transitive_includes/cxx03.csv
    libcxx/test/libcxx/transitive_includes/cxx11.csv
    libcxx/test/libcxx/transitive_includes/cxx14.csv
    libcxx/test/libcxx/transitive_includes/cxx17.csv
    libcxx/test/libcxx/transitive_includes/cxx20.csv
    libcxx/test/libcxx/transitive_includes/cxx23.csv
    libcxx/test/libcxx/transitive_includes/cxx26.csv

Removed: 
    


################################################################################
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)

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