[llvm] [SystemZ][z/OS] Add UtcClock extension to chrono.h/.cpp (PR #67846)

via llvm-commits llvm-commits at lists.llvm.org
Fri Sep 29 13:00:07 PDT 2023


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 7ebf3e019488bcc6209df757e823b08f631aa897 637472dc67b62524b5b4cdc4687c9cea3578f39f -- llvm/unittests/Support/UTFTimeTest.cpp llvm/include/llvm/Support/Chrono.h llvm/lib/Support/Chrono.cpp
``````````

</details>

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

``````````diff
diff --git a/llvm/unittests/Support/UTFTimeTest.cpp b/llvm/unittests/Support/UTFTimeTest.cpp
index de69bd031345..1cde6f8777d7 100644
--- a/llvm/unittests/Support/UTFTimeTest.cpp
+++ b/llvm/unittests/Support/UTFTimeTest.cpp
@@ -7,10 +7,10 @@
 //===----------------------------------------------------------------------===//
 
 #include "llvm/Support/Chrono.h"
-#include "gtest/gtest.h"
 #include "llvm/Support/CommandLine.h"
 #include "llvm/Support/FormatProviders.h"
 #include "llvm/Support/FormatVariadic.h"
+#include "gtest/gtest.h"
 
 namespace llvm {
 namespace sys {
@@ -26,7 +26,6 @@ TEST(UTFTime, convertutc) {
   raw_svector_ostream T(customResultString);
   T << formatv("{0:%Y-%m-%d %H:%M:%S}", llvm::sys::toUtcTime(currentTime));
 
-
   // Convert with gmtime.
   char gmtimeResultString[20];
   std::tm *gmtimeResult = std::gmtime(&currentTime);
@@ -35,7 +34,6 @@ TEST(UTFTime, convertutc) {
 
   // Compare the formatted strings.
   EXPECT_EQ(customResultString, StringRef(gmtimeResultString, 19));
-
 }
 } // namespace
 } // namespace sys

``````````

</details>


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


More information about the llvm-commits mailing list