[libcxx-commits] [libcxx] [libc++][format] Enables formattable tests for chrono formatters. (PR #128356)

via libcxx-commits libcxx-commits at lists.llvm.org
Sat Feb 22 05:46:15 PST 2025


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 c0d140353ec9e99371df54ae61d2aa0f304e043d 366e5a20e7cd2cd2a8e83ed1de53ed9be2780d22 --extensions cpp -- libcxx/test/std/utilities/format/format.formattable/concept.formattable.compile.pass.cpp libcxx/test/std/utilities/format/format.formatter/format.formatter.locking/enable_nonlocking_formatter_optimization.compile.pass.cpp
``````````

</details>

<details>
<summary>
View the diff from clang-format here.
</summary>

``````````diff
diff --git a/libcxx/test/std/utilities/format/format.formattable/concept.formattable.compile.pass.cpp b/libcxx/test/std/utilities/format/format.formattable/concept.formattable.compile.pass.cpp
index 83bba886a4..aed1e927eb 100644
--- a/libcxx/test/std/utilities/format/format.formattable/concept.formattable.compile.pass.cpp
+++ b/libcxx/test/std/utilities/format/format.formattable/concept.formattable.compile.pass.cpp
@@ -157,7 +157,7 @@ void test_P1361() {
   assert_is_formattable<std::chrono::tai_time<std::chrono::microseconds>, CharT>();
   assert_is_formattable<std::chrono::gps_time<std::chrono::microseconds>, CharT>();
 
-#  endif // !defined(TEST_HAS_NO_EXPERIMENTAL_TZDB) && !defined(TEST_HAS_NO_TIME_ZONE_DATABASE) &&
+#  endif // !defined(TEST_HAS_NO_EXPERIMENTAL_TZDB) && !defined(TEST_HAS_NO_TIME_ZONE_DATABASE) &&                     \
          // !defined(TEST_HAS_NO_FILESYSTEM)
 
   assert_is_formattable<std::chrono::file_time<std::chrono::microseconds>, CharT>();

``````````

</details>


https://github.com/llvm/llvm-project/pull/128356


More information about the libcxx-commits mailing list