[libcxx-commits] [libcxx] [libcxx] remove transitive include to C++20 headers in non-C++20 mode (PR #122372)

David Tenty via libcxx-commits libcxx-commits at lists.llvm.org
Thu Jan 9 13:06:04 PST 2025


https://github.com/daltenty created https://github.com/llvm/llvm-project/pull/122372

== DRAFT ==

test removing transitive include to C++20 headers in non-C++20 mode

>From 510a01804fdad40c7099a0eebb41b50da9e10d3d Mon Sep 17 00:00:00 2001
From: David Tenty <daltenty.dev at gmail.com>
Date: Thu, 9 Jan 2025 16:03:37 -0500
Subject: [PATCH] [libcxx] remove transitive include to C++20 headers in
 non-C++20 mode

---
 libcxx/include/ostream | 2 --
 1 file changed, 2 deletions(-)

diff --git a/libcxx/include/ostream b/libcxx/include/ostream
index 4a627a07a4a2fe..ed86f6d7280e62 100644
--- a/libcxx/include/ostream
+++ b/libcxx/include/ostream
@@ -198,10 +198,8 @@ void vprint_nonunicode(ostream& os, string_view fmt, format_args args);
 #    include <concepts>
 #    include <cstdio>
 #    include <cstdlib>
-#    include <format>
 #    include <iosfwd>
 #    include <iterator>
-#    include <print>
 #    include <stdexcept>
 #    include <type_traits>
 #  endif



More information about the libcxx-commits mailing list