[libcxx-commits] [libcxx] 2a6b99d - [libc++] Revert the part of my b82683b that affected <version>.
Arthur O'Dwyer via libcxx-commits
libcxx-commits at lists.llvm.org
Fri Oct 1 10:02:02 PDT 2021
Author: Arthur O'Dwyer
Date: 2021-10-01T13:01:51-04:00
New Revision: 2a6b99d5f8231d96cb4cf03f86af0517743e8124
URL: https://github.com/llvm/llvm-project/commit/2a6b99d5f8231d96cb4cf03f86af0517743e8124
DIFF: https://github.com/llvm/llvm-project/commit/2a6b99d5f8231d96cb4cf03f86af0517743e8124.diff
LOG: [libc++] Revert the part of my b82683b that affected <version>.
This reverts part of commit b82683b2eb3601f6e8970861b94ad7b37393aa90.
I hadn't intended to remove the `// -*- C++ -*-` comment line
from `libcxx/include/version`, only from the generated tests.
Thanks to Raul Tambre for the catch.
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 09efcfc0e6454..8aa5fd4e7f0f8 100644
--- a/libcxx/include/version
+++ b/libcxx/include/version
@@ -1,4 +1,5 @@
-//===----------------------------------------------------------------------===//
+// -*- C++ -*-
+//===--------------------------- version ----------------------------------===//
//
// Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions.
// See https://llvm.org/LICENSE.txt for license information.
diff --git a/libcxx/utils/generate_feature_test_macro_components.py b/libcxx/utils/generate_feature_test_macro_components.py
index 5fef32b8529a0..f6527a97c6be9 100755
--- a/libcxx/utils/generate_feature_test_macro_components.py
+++ b/libcxx/utils/generate_feature_test_macro_components.py
@@ -821,8 +821,8 @@ def indent_to(s, val):
def produce_version_header():
- template="""
-//===----------------------------------------------------------------------===//
+ template="""// -*- C++ -*-
+//===--------------------------- version ----------------------------------===//
//
// Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions.
// See https://llvm.org/LICENSE.txt for license information.
@@ -853,7 +853,7 @@ def produce_version_header():
// clang-format on
#endif // _LIBCPP_VERSIONH
-"""[1:]
+"""
version_str = template.format(
synopsis=produce_version_synopsis().strip(),
More information about the libcxx-commits
mailing list