[libcxx-commits] [libcxx] 40a187b - [libcxx] Rename the now fully private header __std_stream to std_stream.h

Martin Storsjö via libcxx-commits libcxx-commits at lists.llvm.org
Thu Apr 13 02:06:20 PDT 2023


Author: Martin Storsjö
Date: 2023-04-13T12:03:33+03:00
New Revision: 40a187bb622959023f751ec3a11f2af5fa8b48fa

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

LOG: [libcxx] Rename the now fully private header __std_stream to std_stream.h

When this header now is a fully regular header within the src tree,
give it a more regular name.

Differential Revision: https://reviews.llvm.org/D148072

Added: 
    libcxx/src/std_stream.h

Modified: 
    libcxx/src/iostream.cpp
    libcxx/utils/data/ignore_format.txt

Removed: 
    libcxx/src/__std_stream


################################################################################
diff  --git a/libcxx/src/iostream.cpp b/libcxx/src/iostream.cpp
index ba9cff06bfd81..36c6894a0df8e 100644
--- a/libcxx/src/iostream.cpp
+++ b/libcxx/src/iostream.cpp
@@ -7,7 +7,7 @@
 //===----------------------------------------------------------------------===//
 
 #include <__locale>
-#include "__std_stream"
+#include "std_stream.h"
 #include <new>
 #include <string>
 

diff  --git a/libcxx/src/__std_stream b/libcxx/src/std_stream.h
similarity index 99%
rename from libcxx/src/__std_stream
rename to libcxx/src/std_stream.h
index e419e8c03af07..9c15d7d403903 100644
--- a/libcxx/src/__std_stream
+++ b/libcxx/src/std_stream.h
@@ -7,8 +7,8 @@
 //
 //===----------------------------------------------------------------------===//
 
-#ifndef _LIBCPP___STD_STREAM
-#define _LIBCPP___STD_STREAM
+#ifndef _LIBCPP_STD_STREAM_H
+#define _LIBCPP_STD_STREAM_H
 
 #include <__config>
 #include <__locale>
@@ -358,4 +358,4 @@ _LIBCPP_END_NAMESPACE_STD
 
 _LIBCPP_POP_MACROS
 
-#endif // _LIBCPP___STD_STREAM
+#endif // _LIBCPP_STD_STREAM_H

diff  --git a/libcxx/utils/data/ignore_format.txt b/libcxx/utils/data/ignore_format.txt
index f2d958060c8d1..ed596ab1e7e2c 100644
--- a/libcxx/utils/data/ignore_format.txt
+++ b/libcxx/utils/data/ignore_format.txt
@@ -805,7 +805,7 @@ libcxx/src/random_shuffle.cpp
 libcxx/src/regex.cpp
 libcxx/src/shared_mutex.cpp
 libcxx/src/stdexcept.cpp
-libcxx/src/__std_stream
+libcxx/src/std_stream.h
 libcxx/src/string.cpp
 libcxx/src/strstream.cpp
 libcxx/src/support/ibm/mbsnrtowcs.cpp


        


More information about the libcxx-commits mailing list