[libcxx-commits] [libcxx] 902e62c - [libcxx] Fix the #endif comments (#120949)

via libcxx-commits libcxx-commits at lists.llvm.org
Mon Dec 23 07:33:29 PST 2024


Author: Petr Hosek
Date: 2024-12-23T07:33:26-08:00
New Revision: 902e62cf15229a4ef32d12cd4ee083e3a58c447b

URL: https://github.com/llvm/llvm-project/commit/902e62cf15229a4ef32d12cd4ee083e3a58c447b
DIFF: https://github.com/llvm/llvm-project/commit/902e62cf15229a4ef32d12cd4ee083e3a58c447b.diff

LOG: [libcxx] Fix the #endif comments (#120949)

The order of comments is swapped.

Added: 
    

Modified: 
    libcxx/include/stdio.h
    libcxx/include/stdlib.h
    libcxx/include/wchar.h

Removed: 
    


################################################################################
diff  --git a/libcxx/include/stdio.h b/libcxx/include/stdio.h
index 32ab2af5b1865f..20b845a00b477d 100644
--- a/libcxx/include/stdio.h
+++ b/libcxx/include/stdio.h
@@ -116,7 +116,7 @@ void perror(const char* s);
 #      undef putchar
 #      undef getchar
 
-#    endif
-#  endif // defined(__cplusplus) && __cplusplus < 201103L && defined(_LIBCPP_USE_FROZEN_CXX03_HEADERS)
+#    endif // __cplusplus
+#  endif   // _LIBCPP_STDIO_H
 
-#endif // _LIBCPP_STDIO_H
+#endif // defined(__cplusplus) && __cplusplus < 201103L && defined(_LIBCPP_USE_FROZEN_CXX03_HEADERS)

diff  --git a/libcxx/include/stdlib.h b/libcxx/include/stdlib.h
index a37faa1c93aa56..39550f36bb6ed3 100644
--- a/libcxx/include/stdlib.h
+++ b/libcxx/include/stdlib.h
@@ -145,6 +145,6 @@ inline _LIBCPP_HIDE_FROM_ABI lldiv_t div(long long __x, long long __y) _NOEXCEPT
 #      endif // _LIBCPP_MSVCRT
 } // extern "C++"
 #    endif   // __cplusplus
-#  endif     // defined(__cplusplus) && __cplusplus < 201103L && defined(_LIBCPP_USE_FROZEN_CXX03_HEADERS)
+#  endif     // _LIBCPP_STDLIB_H
 
-#endif // _LIBCPP_STDLIB_H
+#endif // defined(__cplusplus) && __cplusplus < 201103L && defined(_LIBCPP_USE_FROZEN_CXX03_HEADERS)

diff  --git a/libcxx/include/wchar.h b/libcxx/include/wchar.h
index cc72b44f4c6419..a932dd266b862a 100644
--- a/libcxx/include/wchar.h
+++ b/libcxx/include/wchar.h
@@ -202,6 +202,6 @@ size_t wcsnrtombs(
 } // extern "C"
 #      endif // __cplusplus && (_LIBCPP_MSVCRT || __MVS__)
 #    endif   // _LIBCPP_HAS_WIDE_CHARACTERS
-#  endif     // defined(__cplusplus) && __cplusplus < 201103L && defined(_LIBCPP_USE_FROZEN_CXX03_HEADERS)
+#  endif     // _LIBCPP_WCHAR_H
 
-#endif // _LIBCPP_WCHAR_H
+#endif // defined(__cplusplus) && __cplusplus < 201103L && defined(_LIBCPP_USE_FROZEN_CXX03_HEADERS)


        


More information about the libcxx-commits mailing list