[libcxx-commits] [libcxx] [libc++][chrono] Loads tzdata.zi in tzdb. (PR #74928)
Louis Dionne via libcxx-commits
libcxx-commits at lists.llvm.org
Tue Feb 6 11:29:36 PST 2024
================
@@ -0,0 +1,28 @@
+//===----------------------------------------------------------------------===//
+//
+// Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions.
+// See https://llvm.org/LICENSE.txt for license information.
+// SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception
+//
+//===----------------------------------------------------------------------===//
+
+// For information see https://libcxx.llvm.org/DesignDocs/TimeZone.html
+
+#ifndef _LIBCPP_SRC_INCLUDE_TZDB_TZ_H
+#define _LIBCPP_SRC_INCLUDE_TZDB_TZ_H
+
+#include <chrono>
+
+#include "types.h"
+
+_LIBCPP_BEGIN_NAMESPACE_STD
+
+namespace chrono {
+
+void __init_tzdb(tzdb& __tzdb, __tz::__rules_storage_type& __rules);
----------------
ldionne wrote:
Since this is charged with initializing the `tzdb`, I would call this `tzdb.h` (and implement it in `tzdb.cpp`). Or `tzdb_private.h` if you want to avoid confusion with `libcxx/include/__chrono/tzdb.h`.
https://github.com/llvm/llvm-project/pull/74928
More information about the libcxx-commits
mailing list