[flang] [llvm] FDATE extension implementation: get date and time in ctime format (PR #71222)

via llvm-commits llvm-commits at lists.llvm.org
Fri Nov 3 13:02:29 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 284c6990c133ed88f32de111accacc9f55a7a51d ed068f838c51e3235a243e24ec72e0756095e030 -- flang/include/flang/Optimizer/Builder/IntrinsicCall.h flang/include/flang/Optimizer/Builder/Runtime/Command.h flang/include/flang/Optimizer/Builder/Runtime/RTBuilder.h flang/include/flang/Runtime/command.h flang/include/flang/Runtime/extensions.h flang/lib/Evaluate/intrinsics.cpp flang/lib/Optimizer/Builder/IntrinsicCall.cpp flang/lib/Optimizer/Builder/Runtime/Command.cpp flang/runtime/command.cpp flang/runtime/extensions.cpp flang/unittests/Optimizer/Builder/Runtime/CommandTest.cpp flang/unittests/Runtime/CommandTest.cpp
``````````

</details>

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

``````````diff
diff --git a/flang/lib/Optimizer/Builder/IntrinsicCall.cpp b/flang/lib/Optimizer/Builder/IntrinsicCall.cpp
index 1f494ddd4bc1..4aca20c5f698 100644
--- a/flang/lib/Optimizer/Builder/IntrinsicCall.cpp
+++ b/flang/lib/Optimizer/Builder/IntrinsicCall.cpp
@@ -2948,7 +2948,7 @@ mlir::Value IntrinsicLibrary::genGetPID(mlir::Type resultType,
 
 // FDATE
 mlir::Value IntrinsicLibrary::genFdate(mlir::Type resultType,
-                                        llvm::ArrayRef<mlir::Value> args) {
+                                       llvm::ArrayRef<mlir::Value> args) {
   assert(args.size() == 0 && "getpid takes no input");
   return builder.createConvert(loc, resultType,
                                fir::runtime::genG(builder, loc));

``````````

</details>


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


More information about the llvm-commits mailing list