[libcxx-commits] [libcxx] [libc++] Remove a few unused includes from <__bit/*> (PR #137934)
Nikolas Klauser via libcxx-commits
libcxx-commits at lists.llvm.org
Wed Apr 30 01:19:43 PDT 2025
https://github.com/philnik777 created https://github.com/llvm/llvm-project/pull/137934
None
>From b4e6274279e96d25e1f8645b2db3dbaf876e209f Mon Sep 17 00:00:00 2001
From: Nikolas Klauser <nikolasklauser at berlin.de>
Date: Wed, 30 Apr 2025 10:19:18 +0200
Subject: [PATCH] [libc++] Remove a few unused includes from <__bit/*>
---
libcxx/include/__bit/bit_floor.h | 1 -
libcxx/include/__bit/countl.h | 1 -
libcxx/include/__bit/countr.h | 1 -
libcxx/include/__bit/popcount.h | 2 --
4 files changed, 5 deletions(-)
diff --git a/libcxx/include/__bit/bit_floor.h b/libcxx/include/__bit/bit_floor.h
index 133e369504e43..6bcbc53fb4972 100644
--- a/libcxx/include/__bit/bit_floor.h
+++ b/libcxx/include/__bit/bit_floor.h
@@ -12,7 +12,6 @@
#include <__bit/bit_log2.h>
#include <__concepts/arithmetic.h>
#include <__config>
-#include <limits>
#if !defined(_LIBCPP_HAS_NO_PRAGMA_SYSTEM_HEADER)
# pragma GCC system_header
diff --git a/libcxx/include/__bit/countl.h b/libcxx/include/__bit/countl.h
index 9c37749f92577..9499bf9b458ee 100644
--- a/libcxx/include/__bit/countl.h
+++ b/libcxx/include/__bit/countl.h
@@ -9,7 +9,6 @@
#ifndef _LIBCPP___BIT_COUNTL_H
#define _LIBCPP___BIT_COUNTL_H
-#include <__bit/rotate.h>
#include <__concepts/arithmetic.h>
#include <__config>
#include <__type_traits/is_unsigned_integer.h>
diff --git a/libcxx/include/__bit/countr.h b/libcxx/include/__bit/countr.h
index f87175971bed3..7b311b83853c5 100644
--- a/libcxx/include/__bit/countr.h
+++ b/libcxx/include/__bit/countr.h
@@ -9,7 +9,6 @@
#ifndef _LIBCPP___BIT_COUNTR_H
#define _LIBCPP___BIT_COUNTR_H
-#include <__assert>
#include <__concepts/arithmetic.h>
#include <__config>
#include <__type_traits/is_unsigned.h>
diff --git a/libcxx/include/__bit/popcount.h b/libcxx/include/__bit/popcount.h
index 622c8efd7938a..9ae572d466ba7 100644
--- a/libcxx/include/__bit/popcount.h
+++ b/libcxx/include/__bit/popcount.h
@@ -9,11 +9,9 @@
#ifndef _LIBCPP___BIT_POPCOUNT_H
#define _LIBCPP___BIT_POPCOUNT_H
-#include <__bit/rotate.h>
#include <__concepts/arithmetic.h>
#include <__config>
#include <__type_traits/is_unsigned.h>
-#include <limits>
#if !defined(_LIBCPP_HAS_NO_PRAGMA_SYSTEM_HEADER)
# pragma GCC system_header
More information about the libcxx-commits
mailing list