Skip to content

[libc++][NFC] Remove unused includes from <__type_traits/remove_cv.h> #88752

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Apr 18, 2024

Conversation

philnik777
Copy link
Contributor

No description provided.

@philnik777 philnik777 force-pushed the remove_unused_includes branch from 77b99d3 to c47b260 Compare April 17, 2024 08:29
@philnik777 philnik777 changed the title [libc++][NFC] Remove a few unused includes [libc++][NFC] Remove unused includes from <__type_traits/remove_cv.h> Apr 17, 2024
@philnik777 philnik777 marked this pull request as ready for review April 18, 2024 04:55
@philnik777 philnik777 requested a review from a team as a code owner April 18, 2024 04:55
@philnik777 philnik777 merged commit 472b612 into llvm:main Apr 18, 2024
@philnik777 philnik777 deleted the remove_unused_includes branch April 18, 2024 04:55
@llvmbot llvmbot added the libc++ libc++ C++ Standard Library. Not GNU libstdc++. Not libc++abi. label Apr 18, 2024
@llvmbot
Copy link
Member

llvmbot commented Apr 18, 2024

@llvm/pr-subscribers-libcxx

Author: Nikolas Klauser (philnik777)

Changes

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

2 Files Affected:

  • (modified) libcxx/include/__format/format_arg.h (+1)
  • (modified) libcxx/include/__type_traits/remove_cv.h (-2)
diff --git a/libcxx/include/__format/format_arg.h b/libcxx/include/__format/format_arg.h
index 4924e5fb325336..aa02f81dc40e2d 100644
--- a/libcxx/include/__format/format_arg.h
+++ b/libcxx/include/__format/format_arg.h
@@ -19,6 +19,7 @@
 #include <__fwd/format.h>
 #include <__memory/addressof.h>
 #include <__type_traits/conditional.h>
+#include <__type_traits/remove_const.h>
 #include <__utility/forward.h>
 #include <__utility/move.h>
 #include <__utility/unreachable.h>
diff --git a/libcxx/include/__type_traits/remove_cv.h b/libcxx/include/__type_traits/remove_cv.h
index 8e1c0433643235..2c4e9e419a1bec 100644
--- a/libcxx/include/__type_traits/remove_cv.h
+++ b/libcxx/include/__type_traits/remove_cv.h
@@ -10,8 +10,6 @@
 #define _LIBCPP___TYPE_TRAITS_REMOVE_CV_H
 
 #include <__config>
-#include <__type_traits/remove_const.h>
-#include <__type_traits/remove_volatile.h>
 
 #if !defined(_LIBCPP_HAS_NO_PRAGMA_SYSTEM_HEADER)
 #  pragma GCC system_header

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
libc++ libc++ C++ Standard Library. Not GNU libstdc++. Not libc++abi.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants