[libcxx-commits] [libcxx] 0f31f68 - [libc++] NFC: Sort header lists in test scripts

Louis Dionne via libcxx-commits libcxx-commits at lists.llvm.org
Mon Jul 5 11:58:38 PDT 2021


Author: Louis Dionne
Date: 2021-07-05T14:58:32-04:00
New Revision: 0f31f68e2698111ce8fc547421f054a0ad60dd56

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

LOG: [libc++] NFC: Sort header lists in test scripts

Added: 
    

Modified: 
    libcxx/utils/generate_header_inclusion_tests.py
    libcxx/utils/generate_header_tests.py

Removed: 
    


################################################################################
diff  --git a/libcxx/utils/generate_header_inclusion_tests.py b/libcxx/utils/generate_header_inclusion_tests.py
index 5596872c339b1..89cd67d89f93e 100755
--- a/libcxx/utils/generate_header_inclusion_tests.py
+++ b/libcxx/utils/generate_header_inclusion_tests.py
@@ -46,8 +46,8 @@ def get_libcxx_paths():
     "regex": ["compare", "initializer_list"],
     "set": ["compare", "initializer_list"],
     "stack": ["compare", "initializer_list"],
-    "string": ["compare", "initializer_list"],
     "string_view": ["compare"],
+    "string": ["compare", "initializer_list"],
     # TODO "syncstream": ["ostream"],
     "system_error": ["compare"],
     "tgmath.h": ["cmath", "complex"],
@@ -70,14 +70,14 @@ def get_libcxx_paths():
     "filesystem": "17",
     "initializer_list": "11",
     "optional": "17",
+    "ranges": "20",
+    "string_view": "17",
+    "syncstream": "20",
     "system_error": "11",
     "thread": "11",
     "tuple": "11",
     "unordered_map": "11",
     "unordered_set": "11",
-    "string_view": "17",
-    "ranges": "20",
-    "syncstream": "20",
     "variant": "17",
 }
 
@@ -94,9 +94,9 @@ def get_libcxx_paths():
   "barrier": ["UNSUPPORTED: libcpp-has-no-threads"],
   "filesystem": ["UNSUPPORTED: libcpp-has-no-filesystem-library"],
   "iomanip": ["UNSUPPORTED: libcpp-has-no-localization"],
-  "istream": ["UNSUPPORTED: libcpp-has-no-localization"],
   "ios": ["UNSUPPORTED: libcpp-has-no-localization"],
   "iostream": ["UNSUPPORTED: libcpp-has-no-localization"],
+  "istream": ["UNSUPPORTED: libcpp-has-no-localization"],
   "latch": ["UNSUPPORTED: libcpp-has-no-threads"],
   "locale": ["UNSUPPORTED: libcpp-has-no-localization"],
   "ostream": ["UNSUPPORTED: libcpp-has-no-localization"],

diff  --git a/libcxx/utils/generate_header_tests.py b/libcxx/utils/generate_header_tests.py
index 9dec4cdc27c1e..5236350a15132 100755
--- a/libcxx/utils/generate_header_tests.py
+++ b/libcxx/utils/generate_header_tests.py
@@ -26,12 +26,12 @@ def get_libcxx_paths():
     "future": ["ifndef _LIBCPP_HAS_NO_THREADS"],
     "latch": ["ifndef _LIBCPP_HAS_NO_THREADS"],
     "mutex": ["ifndef _LIBCPP_HAS_NO_THREADS"],
-    "shared_mutex": ["ifndef _LIBCPP_HAS_NO_THREADS"],
     "semaphore": ["ifndef _LIBCPP_HAS_NO_THREADS"],
+    "shared_mutex": ["ifndef _LIBCPP_HAS_NO_THREADS"],
     "thread": ["ifndef _LIBCPP_HAS_NO_THREADS"],
 
-    "filesystem": ["ifndef _LIBCPP_HAS_NO_FILESYSTEM_LIBRARY"],
     "experimental/filesystem": ["ifndef _LIBCPP_HAS_NO_FILESYSTEM_LIBRARY"],
+    "filesystem": ["ifndef _LIBCPP_HAS_NO_FILESYSTEM_LIBRARY"],
 
     "clocale": ["ifndef _LIBCPP_HAS_NO_LOCALIZATION"],
     "codecvt": ["ifndef _LIBCPP_HAS_NO_LOCALIZATION"],
@@ -40,8 +40,8 @@ def get_libcxx_paths():
     "ios": ["ifndef _LIBCPP_HAS_NO_LOCALIZATION"],
     "iostream": ["ifndef _LIBCPP_HAS_NO_LOCALIZATION"],
     "istream": ["ifndef _LIBCPP_HAS_NO_LOCALIZATION"],
-    "locale": ["ifndef _LIBCPP_HAS_NO_LOCALIZATION"],
     "locale.h": ["ifndef _LIBCPP_HAS_NO_LOCALIZATION"],
+    "locale": ["ifndef _LIBCPP_HAS_NO_LOCALIZATION"],
     "ostream": ["ifndef _LIBCPP_HAS_NO_LOCALIZATION"],
     "regex": ["ifndef _LIBCPP_HAS_NO_LOCALIZATION"],
     "sstream": ["ifndef _LIBCPP_HAS_NO_LOCALIZATION"],


        


More information about the libcxx-commits mailing list