Skip to content

Commit bcb5a12

Browse files
committed
[libc++] Turn off clang-format for auto-generated version header. NFC.
1 parent ef8b3b5 commit bcb5a12

File tree

2 files changed

+8
-0
lines changed

2 files changed

+8
-0
lines changed

libcxx/include/version

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -170,6 +170,8 @@ __cpp_lib_void_t 201411L <type_traits>
170170
#pragma GCC system_header
171171
#endif
172172

173+
// clang-format off
174+
173175
#if _LIBCPP_STD_VER > 11
174176
# define __cpp_lib_chrono_udls 201304L
175177
# define __cpp_lib_complex_udls 201309L
@@ -365,4 +367,6 @@ __cpp_lib_void_t 201411L <type_traits>
365367
# define __cpp_lib_string_contains 202011L
366368
#endif
367369

370+
// clang-format on
371+
368372
#endif // _LIBCPP_VERSIONH

libcxx/utils/generate_feature_test_macro_components.py

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -820,8 +820,12 @@ def produce_version_header():
820820
#pragma GCC system_header
821821
#endif
822822
823+
// clang-format off
824+
823825
{cxx_macros}
824826
827+
// clang-format on
828+
825829
#endif // _LIBCPP_VERSIONH
826830
"""
827831

0 commit comments

Comments
 (0)