[libcxx-commits] [libcxx] afe8ca8 - [libcxx] Fix whitespace error

Michael Schellenberger Costa via libcxx-commits libcxx-commits at lists.llvm.org
Wed Sep 2 12:44:28 PDT 2020


Author: Michael Schellenberger Costa
Date: 2020-09-02T21:44:15+02:00
New Revision: afe8ca867337f5c0e6d1665096e400686a64bef9

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

LOG: [libcxx] Fix whitespace error

Added: 
    

Modified: 
    libcxx/docs/FeatureTestMacroTable.rst
    libcxx/test/std/language.support/support.limits/support.limits.general/utility.version.pass.cpp
    libcxx/test/std/language.support/support.limits/support.limits.general/version.version.pass.cpp
    libcxx/utils/generate_feature_test_macro_components.py

Removed: 
    


################################################################################
diff  --git a/libcxx/docs/FeatureTestMacroTable.rst b/libcxx/docs/FeatureTestMacroTable.rst
index 1dbeb213f8ba..f5c6e5b8251a 100644
--- a/libcxx/docs/FeatureTestMacroTable.rst
+++ b/libcxx/docs/FeatureTestMacroTable.rst
@@ -184,7 +184,7 @@ Status
     ------------------------------------------------- -----------------
     ``__cpp_lib_constexpr_swap_algorithms``           *unimplemented*  
     ------------------------------------------------- -----------------
-    ``__cpp_lib_constexpr_utility ``                  ``201811L``      
+    ``__cpp_lib_constexpr_utility``                   ``201811L``      
     ------------------------------------------------- -----------------
     ``__cpp_lib_destroying_delete``                   ``201806L``      
     ------------------------------------------------- -----------------

diff  --git a/libcxx/test/std/language.support/support.limits/support.limits.general/utility.version.pass.cpp b/libcxx/test/std/language.support/support.limits/support.limits.general/utility.version.pass.cpp
index 73762a4f12fa..e595a99a749f 100644
--- a/libcxx/test/std/language.support/support.limits/support.limits.general/utility.version.pass.cpp
+++ b/libcxx/test/std/language.support/support.limits/support.limits.general/utility.version.pass.cpp
@@ -13,14 +13,14 @@
 
 // Test the feature test macros defined by <utility>
 
-/*  Constant                        Value
-    __cpp_lib_as_const              201510L [C++17]
-    __cpp_lib_constexpr_misc        201811L [C++2a]
-    __cpp_lib_constexpr_utility     201811L [C++2a]
-    __cpp_lib_exchange_function     201304L [C++14]
-    __cpp_lib_integer_sequence      201304L [C++14]
-    __cpp_lib_to_chars              201611L [C++17]
-    __cpp_lib_tuples_by_type        201304L [C++14]
+/*  Constant                       Value
+    __cpp_lib_as_const             201510L [C++17]
+    __cpp_lib_constexpr_misc       201811L [C++2a]
+    __cpp_lib_constexpr_utility    201811L [C++2a]
+    __cpp_lib_exchange_function    201304L [C++14]
+    __cpp_lib_integer_sequence     201304L [C++14]
+    __cpp_lib_to_chars             201611L [C++17]
+    __cpp_lib_tuples_by_type       201304L [C++14]
 */
 
 #include <utility>
@@ -36,8 +36,8 @@
 #   error "__cpp_lib_constexpr_misc should not be defined before c++2a"
 # endif
 
-# ifdef __cpp_lib_constexpr_utility 
-#   error "__cpp_lib_constexpr_utility  should not be defined before c++2a"
+# ifdef __cpp_lib_constexpr_utility
+#   error "__cpp_lib_constexpr_utility should not be defined before c++2a"
 # endif
 
 # ifdef __cpp_lib_exchange_function
@@ -66,8 +66,8 @@
 #   error "__cpp_lib_constexpr_misc should not be defined before c++2a"
 # endif
 
-# ifdef __cpp_lib_constexpr_utility 
-#   error "__cpp_lib_constexpr_utility  should not be defined before c++2a"
+# ifdef __cpp_lib_constexpr_utility
+#   error "__cpp_lib_constexpr_utility should not be defined before c++2a"
 # endif
 
 # ifndef __cpp_lib_exchange_function
@@ -108,8 +108,8 @@
 #   error "__cpp_lib_constexpr_misc should not be defined before c++2a"
 # endif
 
-# ifdef __cpp_lib_constexpr_utility 
-#   error "__cpp_lib_constexpr_utility  should not be defined before c++2a"
+# ifdef __cpp_lib_constexpr_utility
+#   error "__cpp_lib_constexpr_utility should not be defined before c++2a"
 # endif
 
 # ifndef __cpp_lib_exchange_function
@@ -168,11 +168,11 @@
 #   endif
 # endif
 
-# ifndef __cpp_lib_constexpr_utility 
-#   error "__cpp_lib_constexpr_utility  should be defined in c++2a"
+# ifndef __cpp_lib_constexpr_utility
+#   error "__cpp_lib_constexpr_utility should be defined in c++2a"
 # endif
-# if __cpp_lib_constexpr_utility  != 201811L
-#   error "__cpp_lib_constexpr_utility  should have the value 201811L in c++2a"
+# if __cpp_lib_constexpr_utility != 201811L
+#   error "__cpp_lib_constexpr_utility should have the value 201811L in c++2a"
 # endif
 
 # ifndef __cpp_lib_exchange_function

diff  --git a/libcxx/test/std/language.support/support.limits/support.limits.general/version.version.pass.cpp b/libcxx/test/std/language.support/support.limits/support.limits.general/version.version.pass.cpp
index 5e485a2f585e..afbee586df3c 100644
--- a/libcxx/test/std/language.support/support.limits/support.limits.general/version.version.pass.cpp
+++ b/libcxx/test/std/language.support/support.limits/support.limits.general/version.version.pass.cpp
@@ -195,8 +195,8 @@
 #   error "__cpp_lib_constexpr_swap_algorithms should not be defined before c++2a"
 # endif
 
-# ifdef __cpp_lib_constexpr_utility 
-#   error "__cpp_lib_constexpr_utility  should not be defined before c++2a"
+# ifdef __cpp_lib_constexpr_utility
+#   error "__cpp_lib_constexpr_utility should not be defined before c++2a"
 # endif
 
 # ifdef __cpp_lib_destroying_delete
@@ -555,8 +555,8 @@
 #   error "__cpp_lib_constexpr_swap_algorithms should not be defined before c++2a"
 # endif
 
-# ifdef __cpp_lib_constexpr_utility 
-#   error "__cpp_lib_constexpr_utility  should not be defined before c++2a"
+# ifdef __cpp_lib_constexpr_utility
+#   error "__cpp_lib_constexpr_utility should not be defined before c++2a"
 # endif
 
 # ifdef __cpp_lib_destroying_delete
@@ -1029,8 +1029,8 @@
 #   error "__cpp_lib_constexpr_swap_algorithms should not be defined before c++2a"
 # endif
 
-# ifdef __cpp_lib_constexpr_utility 
-#   error "__cpp_lib_constexpr_utility  should not be defined before c++2a"
+# ifdef __cpp_lib_constexpr_utility
+#   error "__cpp_lib_constexpr_utility should not be defined before c++2a"
 # endif
 
 # ifdef __cpp_lib_destroying_delete
@@ -1734,11 +1734,11 @@
 #   endif
 # endif
 
-# ifndef __cpp_lib_constexpr_utility 
-#   error "__cpp_lib_constexpr_utility  should be defined in c++2a"
+# ifndef __cpp_lib_constexpr_utility
+#   error "__cpp_lib_constexpr_utility should be defined in c++2a"
 # endif
-# if __cpp_lib_constexpr_utility  != 201811L
-#   error "__cpp_lib_constexpr_utility  should have the value 201811L in c++2a"
+# if __cpp_lib_constexpr_utility != 201811L
+#   error "__cpp_lib_constexpr_utility should have the value 201811L in c++2a"
 # endif
 
 # if TEST_STD_VER > 17 && defined(__cpp_impl_destroying_delete) && __cpp_impl_destroying_delete >= 201806L

diff  --git a/libcxx/utils/generate_feature_test_macro_components.py b/libcxx/utils/generate_feature_test_macro_components.py
index 88241614420a..6ad1a1856989 100755
--- a/libcxx/utils/generate_feature_test_macro_components.py
+++ b/libcxx/utils/generate_feature_test_macro_components.py
@@ -607,7 +607,7 @@ def add_version_header(tc):
    "depends": "defined(__cpp_concepts) && __cpp_concepts >= 201811L",
    "internal_depends": "defined(__cpp_concepts) && __cpp_concepts >= 201811L",
    },
-  {"name": "__cpp_lib_constexpr_utility ",
+  {"name": "__cpp_lib_constexpr_utility",
    "values": {
      "c++2a": int(201811),
    },


        


More information about the libcxx-commits mailing list