From 19a3e3f65a6c1b6b6f34569f51c08a8589ffabdc Mon Sep 17 00:00:00 2001 From: JumpMasterJJ <1336724109@qq.com> Date: Mon, 20 May 2024 21:17:08 +0800 Subject: [PATCH] format code format code --- flang/include/flang/Optimizer/Builder/IntrinsicCall.h | 3 ++- flang/include/flang/Optimizer/Builder/Runtime/Command.h | 5 ++--- flang/include/flang/Runtime/command.h | 3 ++- 3 files changed, 6 insertions(+), 5 deletions(-) diff --git a/flang/include/flang/Optimizer/Builder/IntrinsicCall.h b/flang/include/flang/Optimizer/Builder/IntrinsicCall.h index 209fb0994af0b1..ac87c757c7922f 100644 --- a/flang/include/flang/Optimizer/Builder/IntrinsicCall.h +++ b/flang/include/flang/Optimizer/Builder/IntrinsicCall.h @@ -232,7 +232,8 @@ struct IntrinsicLibrary { mlir::Value genFloor(mlir::Type, llvm::ArrayRef); mlir::Value genFraction(mlir::Type resultType, mlir::ArrayRef args); - fir::ExtendedValue genGetCwd(std::optional resultType, llvm::ArrayRef args); + fir::ExtendedValue genGetCwd(std::optional resultType, + llvm::ArrayRef args); void genGetCommand(mlir::ArrayRef args); mlir::Value genGetPID(mlir::Type resultType, llvm::ArrayRef args); diff --git a/flang/include/flang/Optimizer/Builder/Runtime/Command.h b/flang/include/flang/Optimizer/Builder/Runtime/Command.h index 24790f7ec55fda..0d60a367d99981 100644 --- a/flang/include/flang/Optimizer/Builder/Runtime/Command.h +++ b/flang/include/flang/Optimizer/Builder/Runtime/Command.h @@ -53,11 +53,10 @@ mlir::Value genGetEnvVariable(fir::FirOpBuilder &, mlir::Location, mlir::Value length, mlir::Value trimName, mlir::Value errmsg); - /// Generate a call to the GetCwd runtime function which implements /// the GETCWD intrinsic. -mlir::Value genGetCwd(fir::FirOpBuilder &builder, - mlir::Location loc, mlir::Value c); +mlir::Value genGetCwd(fir::FirOpBuilder &builder, mlir::Location loc, + mlir::Value c); } // namespace fir::runtime #endif // FORTRAN_OPTIMIZER_BUILDER_RUNTIME_COMMAND_H diff --git a/flang/include/flang/Runtime/command.h b/flang/include/flang/Runtime/command.h index 996a71af220892..7ab3f6442dcf92 100644 --- a/flang/include/flang/Runtime/command.h +++ b/flang/include/flang/Runtime/command.h @@ -57,7 +57,8 @@ std::int32_t RTNAME(GetEnvVariable)(const Descriptor &name, const char *sourceFile = nullptr, int line = 0); // Calls getcwd() -std::int32_t RTNAME(GetCwd)(const Descriptor &cwd, const char *sourceFile, int line); +std::int32_t RTNAME(GetCwd)( + const Descriptor &cwd, const char *sourceFile, int line); } } // namespace Fortran::runtime