[libcxx-commits] [libcxx] [libc++] Remove a few unused includes from <__concepts/*> (PR #129883)

via libcxx-commits libcxx-commits at lists.llvm.org
Thu Mar 6 01:22:54 PST 2025


llvmbot wrote:


<!--LLVM PR SUMMARY COMMENT-->

@llvm/pr-subscribers-libcxx

Author: Nikolas Klauser (philnik777)

<details>
<summary>Changes</summary>



---
Full diff: https://github.com/llvm/llvm-project/pull/129883.diff


2 Files Affected:

- (modified) libcxx/include/__concepts/class_or_enum.h (-1) 
- (modified) libcxx/include/__concepts/swappable.h (-1) 


``````````diff
diff --git a/libcxx/include/__concepts/class_or_enum.h b/libcxx/include/__concepts/class_or_enum.h
index 2739e31e14ba6..9fceed034c468 100644
--- a/libcxx/include/__concepts/class_or_enum.h
+++ b/libcxx/include/__concepts/class_or_enum.h
@@ -13,7 +13,6 @@
 #include <__type_traits/is_class.h>
 #include <__type_traits/is_enum.h>
 #include <__type_traits/is_union.h>
-#include <__type_traits/remove_cvref.h>
 
 #if !defined(_LIBCPP_HAS_NO_PRAGMA_SYSTEM_HEADER)
 #  pragma GCC system_header
diff --git a/libcxx/include/__concepts/swappable.h b/libcxx/include/__concepts/swappable.h
index 985c733021a0d..c691d3ab1e12b 100644
--- a/libcxx/include/__concepts/swappable.h
+++ b/libcxx/include/__concepts/swappable.h
@@ -22,7 +22,6 @@
 #include <__utility/exchange.h>
 #include <__utility/forward.h>
 #include <__utility/move.h>
-#include <__utility/swap.h>
 
 #if !defined(_LIBCPP_HAS_NO_PRAGMA_SYSTEM_HEADER)
 #  pragma GCC system_header

``````````

</details>


https://github.com/llvm/llvm-project/pull/129883


More information about the libcxx-commits mailing list