[libcxx-commits] [libcxx] [libc++][TZDB] Fixes parsing interleaved rules. (PR #84808)
via libcxx-commits
libcxx-commits at lists.llvm.org
Mon Mar 11 11:22:13 PDT 2024
github-actions[bot] wrote:
<!--LLVM CODE FORMAT COMMENT: {clang-format}-->
:warning: C/C++ code formatter, clang-format found issues in your code. :warning:
<details>
<summary>
You can test this locally with the following command:
</summary>
``````````bash
git-clang-format --diff a066f71e70b9cbfdc2f2eb41e7c4d8372d216a6e 557788da3adf697a0162c1ae2e7cc186a3d6eb23 -- libcxx/src/tzdb.cpp libcxx/test/libcxx/time/time.zone/time.zone.db/rules.pass.cpp
``````````
</details>
<details>
<summary>
View the diff from clang-format here.
</summary>
``````````diff
diff --git a/libcxx/src/tzdb.cpp b/libcxx/src/tzdb.cpp
index 49985b870d..9c4d5d7294 100644
--- a/libcxx/src/tzdb.cpp
+++ b/libcxx/src/tzdb.cpp
@@ -511,8 +511,7 @@ static string __parse_version(istream& __input) {
return chrono::__parse_string(__input);
}
-[[nodiscard]]
-static __tz::__rule& __create_entry(__tz::__rules_storage_type& __rules, const string& __name) {
+[[nodiscard]] static __tz::__rule& __create_entry(__tz::__rules_storage_type& __rules, const string& __name) {
auto __result = [&]() -> __tz::__rule& {
auto& __rule = __rules.emplace_back(__name, vector<__tz::__rule>{});
return __rule.second.emplace_back();
``````````
</details>
https://github.com/llvm/llvm-project/pull/84808
More information about the libcxx-commits
mailing list