[libcxx-commits] [libcxx] 9d6b68b - [libc++][TZDB] Makes implementation experimental. (#95657)
via libcxx-commits
libcxx-commits at lists.llvm.org
Sun Jul 7 02:17:38 PDT 2024
Author: Mark de Wever
Date: 2024-07-07T11:17:34+02:00
New Revision: 9d6b68b63f02e0fa3a1dd5b4553cc0d8f17d8777
URL: https://github.com/llvm/llvm-project/commit/9d6b68b63f02e0fa3a1dd5b4553cc0d8f17d8777
DIFF: https://github.com/llvm/llvm-project/commit/9d6b68b63f02e0fa3a1dd5b4553cc0d8f17d8777.diff
LOG: [libc++][TZDB] Makes implementation experimental. (#95657)
This moves the files to libcxx/src/experimental/ as discussed in #90394.
Fixes: https://github.com/llvm/llvm-project/issues/94902
Added:
libcxx/src/experimental/chrono_exception.cpp
libcxx/src/experimental/include/tzdb/time_zone_private.h
libcxx/src/experimental/include/tzdb/types_private.h
libcxx/src/experimental/include/tzdb/tzdb_list_private.h
libcxx/src/experimental/include/tzdb/tzdb_private.h
libcxx/src/experimental/time_zone.cpp
libcxx/src/experimental/tzdb.cpp
libcxx/src/experimental/tzdb_list.cpp
Modified:
libcxx/src/CMakeLists.txt
libcxx/test/libcxx/time/time.zone/time.zone.db/rules.pass.cpp
libcxx/test/libcxx/time/time.zone/time.zone.db/zones.pass.cpp
Removed:
libcxx/src/chrono_exception.cpp
libcxx/src/include/tzdb/time_zone_private.h
libcxx/src/include/tzdb/types_private.h
libcxx/src/include/tzdb/tzdb_list_private.h
libcxx/src/include/tzdb/tzdb_private.h
libcxx/src/time_zone.cpp
libcxx/src/tzdb.cpp
libcxx/src/tzdb_list.cpp
################################################################################
diff --git a/libcxx/src/CMakeLists.txt b/libcxx/src/CMakeLists.txt
index b34f9e614ae0b..0ae58a10c879c 100644
--- a/libcxx/src/CMakeLists.txt
+++ b/libcxx/src/CMakeLists.txt
@@ -342,16 +342,16 @@ endif()
if (LIBCXX_ENABLE_LOCALIZATION AND LIBCXX_ENABLE_FILESYSTEM AND LIBCXX_ENABLE_TIME_ZONE_DATABASE)
list(APPEND LIBCXX_EXPERIMENTAL_SOURCES
- include/tzdb/time_zone_private.h
- include/tzdb/types_private.h
- include/tzdb/tzdb_list_private.h
- include/tzdb/tzdb_private.h
+ experimental/include/tzdb/time_zone_private.h
+ experimental/include/tzdb/types_private.h
+ experimental/include/tzdb/tzdb_list_private.h
+ experimental/include/tzdb/tzdb_private.h
# TODO TZDB The exception could be moved in chrono once the TZDB library
# is no longer experimental.
- chrono_exception.cpp
- time_zone.cpp
- tzdb.cpp
- tzdb_list.cpp
+ experimental/chrono_exception.cpp
+ experimental/time_zone.cpp
+ experimental/tzdb.cpp
+ experimental/tzdb_list.cpp
)
endif()
diff --git a/libcxx/src/chrono_exception.cpp b/libcxx/src/experimental/chrono_exception.cpp
similarity index 100%
rename from libcxx/src/chrono_exception.cpp
rename to libcxx/src/experimental/chrono_exception.cpp
diff --git a/libcxx/src/include/tzdb/time_zone_private.h b/libcxx/src/experimental/include/tzdb/time_zone_private.h
similarity index 100%
rename from libcxx/src/include/tzdb/time_zone_private.h
rename to libcxx/src/experimental/include/tzdb/time_zone_private.h
diff --git a/libcxx/src/include/tzdb/types_private.h b/libcxx/src/experimental/include/tzdb/types_private.h
similarity index 100%
rename from libcxx/src/include/tzdb/types_private.h
rename to libcxx/src/experimental/include/tzdb/types_private.h
diff --git a/libcxx/src/include/tzdb/tzdb_list_private.h b/libcxx/src/experimental/include/tzdb/tzdb_list_private.h
similarity index 100%
rename from libcxx/src/include/tzdb/tzdb_list_private.h
rename to libcxx/src/experimental/include/tzdb/tzdb_list_private.h
diff --git a/libcxx/src/include/tzdb/tzdb_private.h b/libcxx/src/experimental/include/tzdb/tzdb_private.h
similarity index 100%
rename from libcxx/src/include/tzdb/tzdb_private.h
rename to libcxx/src/experimental/include/tzdb/tzdb_private.h
diff --git a/libcxx/src/time_zone.cpp b/libcxx/src/experimental/time_zone.cpp
similarity index 100%
rename from libcxx/src/time_zone.cpp
rename to libcxx/src/experimental/time_zone.cpp
diff --git a/libcxx/src/tzdb.cpp b/libcxx/src/experimental/tzdb.cpp
similarity index 100%
rename from libcxx/src/tzdb.cpp
rename to libcxx/src/experimental/tzdb.cpp
diff --git a/libcxx/src/tzdb_list.cpp b/libcxx/src/experimental/tzdb_list.cpp
similarity index 100%
rename from libcxx/src/tzdb_list.cpp
rename to libcxx/src/experimental/tzdb_list.cpp
diff --git a/libcxx/test/libcxx/time/time.zone/time.zone.db/rules.pass.cpp b/libcxx/test/libcxx/time/time.zone/time.zone.db/rules.pass.cpp
index 73f4dbd59af9a..7d9759320c535 100644
--- a/libcxx/test/libcxx/time/time.zone/time.zone.db/rules.pass.cpp
+++ b/libcxx/test/libcxx/time/time.zone/time.zone.db/rules.pass.cpp
@@ -17,7 +17,7 @@
// Tests the IANA database rules parsing and operations.
// This is not part of the public tzdb interface.
// The test uses private implementation headers.
-// ADDITIONAL_COMPILE_FLAGS: -I %{libcxx-dir}/src/include
+// ADDITIONAL_COMPILE_FLAGS: -I %{libcxx-dir}/src/experimental/include
#include <chrono>
#include <fstream>
diff --git a/libcxx/test/libcxx/time/time.zone/time.zone.db/zones.pass.cpp b/libcxx/test/libcxx/time/time.zone/time.zone.db/zones.pass.cpp
index 6d436d61357b3..ded89ed808e17 100644
--- a/libcxx/test/libcxx/time/time.zone/time.zone.db/zones.pass.cpp
+++ b/libcxx/test/libcxx/time/time.zone/time.zone.db/zones.pass.cpp
@@ -17,7 +17,7 @@
// Tests the IANA database zones parsing and operations.
// This is not part of the public tzdb interface.
// The test uses private implementation headers.
-// ADDITIONAL_COMPILE_FLAGS: -I %{libcxx-dir}/src/include
+// ADDITIONAL_COMPILE_FLAGS: -I %{libcxx-dir}/src/experimental/include
#include <cassert>
#include <chrono>
More information about the libcxx-commits
mailing list