[libcxx-commits] [libcxx] 126f81d - [NFC][libc++] removes std:: qualification,

Mark de Wever via libcxx-commits libcxx-commits at lists.llvm.org
Sat Jul 6 03:02:58 PDT 2024


Author: Mark de Wever
Date: 2024-07-06T12:02:45+02:00
New Revision: 126f81dd5a804636e4b66146d2d039099d9d5889

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

LOG: [NFC][libc++] removes std:: qualification,

Elements in nested namespaces in the std namespace do not use fully
qualified names in libc++. This adjusts a few cases found.

Added: 
    

Modified: 
    libcxx/src/tzdb.cpp

Removed: 
    


################################################################################
diff  --git a/libcxx/src/tzdb.cpp b/libcxx/src/tzdb.cpp
index 2d07796c6951f..d22de21c99819 100644
--- a/libcxx/src/tzdb.cpp
+++ b/libcxx/src/tzdb.cpp
@@ -677,9 +677,9 @@ void __init_tzdb(tzdb& __tzdb, __tz::__rules_storage_type& __rules) {
 
   __tzdb.version = chrono::__parse_version(__tzdata);
   chrono::__parse_tzdata(__tzdb, __rules, __tzdata);
-  std::ranges::sort(__tzdb.zones);
-  std::ranges::sort(__tzdb.links);
-  std::ranges::sort(__rules, {}, [](const auto& p) { return p.first; });
+  ranges::sort(__tzdb.zones);
+  ranges::sort(__tzdb.links);
+  ranges::sort(__rules, {}, [](const auto& p) { return p.first; });
 
   // There are two files with the leap second information
   // - leapseconds as specified by zic
@@ -724,10 +724,10 @@ void __init_tzdb(tzdb& __tzdb, __tz::__rules_storage_type& __rules) {
       return __result;
 
   filesystem::path __path = "/etc/localtime";
-  if (!std::filesystem::exists(__path))
+  if (!filesystem::exists(__path))
     std::__throw_runtime_error("tzdb: the symlink '/etc/localtime' does not exist");
 
-  if (!std::filesystem::is_symlink(__path))
+  if (!filesystem::is_symlink(__path))
     std::__throw_runtime_error("tzdb: the path '/etc/localtime' is not a symlink");
 
   filesystem::path __tz = filesystem::read_symlink(__path);


        


More information about the libcxx-commits mailing list