[libcxx-commits] [libcxx] bcb5a12 - [libc++] Turn off clang-format for auto-generated version header. NFC.
Marek Kurdej via libcxx-commits
libcxx-commits at lists.llvm.org
Fri Feb 19 08:27:06 PST 2021
Author: Marek Kurdej
Date: 2021-02-19T17:26:16+01:00
New Revision: bcb5a124aea8ecba090ffe2815e357480830d53b
URL: https://github.com/llvm/llvm-project/commit/bcb5a124aea8ecba090ffe2815e357480830d53b
DIFF: https://github.com/llvm/llvm-project/commit/bcb5a124aea8ecba090ffe2815e357480830d53b.diff
LOG: [libc++] Turn off clang-format for auto-generated version header. NFC.
Added:
Modified:
libcxx/include/version
libcxx/utils/generate_feature_test_macro_components.py
Removed:
################################################################################
diff --git a/libcxx/include/version b/libcxx/include/version
index b13afca632a1..3252219a7fd3 100644
--- a/libcxx/include/version
+++ b/libcxx/include/version
@@ -170,6 +170,8 @@ __cpp_lib_void_t 201411L <type_traits>
#pragma GCC system_header
#endif
+// clang-format off
+
#if _LIBCPP_STD_VER > 11
# define __cpp_lib_chrono_udls 201304L
# define __cpp_lib_complex_udls 201309L
@@ -365,4 +367,6 @@ __cpp_lib_void_t 201411L <type_traits>
# define __cpp_lib_string_contains 202011L
#endif
+// clang-format on
+
#endif // _LIBCPP_VERSIONH
diff --git a/libcxx/utils/generate_feature_test_macro_components.py b/libcxx/utils/generate_feature_test_macro_components.py
index cce7bb76d533..a7360c37e8be 100755
--- a/libcxx/utils/generate_feature_test_macro_components.py
+++ b/libcxx/utils/generate_feature_test_macro_components.py
@@ -820,8 +820,12 @@ def produce_version_header():
#pragma GCC system_header
#endif
+// clang-format off
+
{cxx_macros}
+// clang-format on
+
#endif // _LIBCPP_VERSIONH
"""
More information about the libcxx-commits
mailing list