[flang] Reformat with latest clang-format and .clang-format
Original-commit: flang-compiler/f18@9fe84f45d7fd685051004678d6b5775dcc4c6f8f
Reviewed-on: https://github.com/flang-compiler/f18/pull/1094
diff --git a/flang/runtime/connection.h b/flang/runtime/connection.h
index 1c07161..67d4d77 100644
--- a/flang/runtime/connection.h
+++ b/flang/runtime/connection.h
@@ -25,33 +25,33 @@
// These characteristics of a connection are immutable after being
// established in an OPEN statement.
struct ConnectionAttributes {
- Access access{Access::Sequential}; // ACCESS='SEQUENTIAL', 'DIRECT', 'STREAM'
- std::optional<std::int64_t> recordLength; // RECL= when fixed-length
- bool isUnformatted{false}; // FORM='UNFORMATTED'
- bool isUTF8{false}; // ENCODING='UTF-8'
+ Access access{Access::Sequential}; // ACCESS='SEQUENTIAL', 'DIRECT', 'STREAM'
+ std::optional<std::int64_t> recordLength; // RECL= when fixed-length
+ bool isUnformatted{false}; // FORM='UNFORMATTED'
+ bool isUTF8{false}; // ENCODING='UTF-8'
};
struct ConnectionState : public ConnectionAttributes {
- bool IsAtEOF() const; // true when read has hit EOF or endfile record
+ bool IsAtEOF() const; // true when read has hit EOF or endfile record
std::size_t RemainingSpaceInRecord() const;
void HandleAbsolutePosition(std::int64_t);
void HandleRelativePosition(std::int64_t);
// Positions in a record file (sequential or direct, not stream)
- std::int64_t currentRecordNumber{1}; // 1 is first
- std::int64_t positionInRecord{0}; // offset in current record
- std::int64_t furthestPositionInRecord{0}; // max(positionInRecord)
- bool nonAdvancing{false}; // ADVANCE='NO'
+ std::int64_t currentRecordNumber{1}; // 1 is first
+ std::int64_t positionInRecord{0}; // offset in current record
+ std::int64_t furthestPositionInRecord{0}; // max(positionInRecord)
+ bool nonAdvancing{false}; // ADVANCE='NO'
// Set at end of non-advancing I/O data transfer
- std::optional<std::int64_t> leftTabLimit; // offset in current record
+ std::optional<std::int64_t> leftTabLimit; // offset in current record
// currentRecordNumber value captured after ENDFILE/REWIND/BACKSPACE statement
// or an end-of-file READ condition on a sequential access file
std::optional<std::int64_t> endfileRecordNumber;
// Mutable modes set at OPEN() that can be overridden in READ/WRITE & FORMAT
- MutableModes modes; // BLANK=, DECIMAL=, SIGN=, ROUND=, PAD=, DELIM=, kP
+ MutableModes modes; // BLANK=, DECIMAL=, SIGN=, ROUND=, PAD=, DELIM=, kP
};
-}
-#endif // FORTRAN_RUNTIME_IO_CONNECTION_H_
+} // namespace Fortran::runtime::io
+#endif // FORTRAN_RUNTIME_IO_CONNECTION_H_