clang-format: copy latest and re-format
clang-format-17 has some backwards incompatible changes that require
additional settings for best compatibility and re-running the formatter.
Copy the latest .clang-format from the docs repository and reformat the
repository.
Change-Id: I5278656122f19da46fcd0a84bc96af420d4cb8bd
Signed-off-by: Patrick Williams <patrick@stwcx.xyz>
diff --git a/sol/sol_context.hpp b/sol/sol_context.hpp
index fe70dbf..e4045c8 100644
--- a/sol/sol_context.hpp
+++ b/sol/sol_context.hpp
@@ -18,23 +18,23 @@
struct Outbound
{
#if BYTE_ORDER == LITTLE_ENDIAN
- uint8_t testMode : 2; //!< Not supported.
- uint8_t breakDetected : 1; //!< Not supported.
- uint8_t transmitOverrun : 1; //!< Not supported.
- uint8_t SOLDeactivating : 1; //!< 0 : SOL is active, 1 : SOL deactivated.
- uint8_t charUnavailable : 1; //!< 0 : Available, 1 : Unavailable.
- uint8_t ack : 1; //!< 0 : ACK, 1 : NACK.
- uint8_t reserved : 1; //!< Reserved.
+ uint8_t testMode:2; //!< Not supported.
+ uint8_t breakDetected:1; //!< Not supported.
+ uint8_t transmitOverrun:1; //!< Not supported.
+ uint8_t SOLDeactivating:1; //!< 0 : SOL is active, 1 : SOL deactivated.
+ uint8_t charUnavailable:1; //!< 0 : Available, 1 : Unavailable.
+ uint8_t ack:1; //!< 0 : ACK, 1 : NACK.
+ uint8_t reserved:1; //!< Reserved.
#endif
#if BYTE_ORDER == BIG_ENDIAN
- uint8_t reserved : 1; //!< Reserved.
- uint8_t ack : 1; //!< 0 : ACK, 1 : NACK.
- uint8_t charUnavailable : 1; //!< 0 : Available, 1 : Unavailable.
- uint8_t SOLDeactivating : 1; //!< 0 : SOL is active, 1 : SOL deactivated.
- uint8_t transmitOverrun : 1; //!< Not supported.
- uint8_t breakDetected : 1; //!< Not supported.
- uint8_t testMode : 2; //!< Not supported.
+ uint8_t reserved:1; //!< Reserved.
+ uint8_t ack:1; //!< 0 : ACK, 1 : NACK.
+ uint8_t charUnavailable:1; //!< 0 : Available, 1 : Unavailable.
+ uint8_t SOLDeactivating:1; //!< 0 : SOL is active, 1 : SOL deactivated.
+ uint8_t transmitOverrun:1; //!< Not supported.
+ uint8_t breakDetected:1; //!< Not supported.
+ uint8_t testMode:2; //!< Not supported.
#endif
} __attribute__((packed));
@@ -45,25 +45,25 @@
struct Inbound
{
#if BYTE_ORDER == LITTLE_ENDIAN
- uint8_t flushOut : 1; //!< Not supported.
- uint8_t flushIn : 1; //!< Not supported.
- uint8_t dcd : 1; //!< Not supported.
- uint8_t cts : 1; //!< Not supported.
- uint8_t generateBreak : 1; //!< Not supported.
- uint8_t ring : 1; //!< Not supported.
- uint8_t ack : 1; //!< 0 : ACK, 1 : NACK.
- uint8_t reserved : 1; //!< Reserved.
+ uint8_t flushOut:1; //!< Not supported.
+ uint8_t flushIn:1; //!< Not supported.
+ uint8_t dcd:1; //!< Not supported.
+ uint8_t cts:1; //!< Not supported.
+ uint8_t generateBreak:1; //!< Not supported.
+ uint8_t ring:1; //!< Not supported.
+ uint8_t ack:1; //!< 0 : ACK, 1 : NACK.
+ uint8_t reserved:1; //!< Reserved.
#endif
#if BYTE_ORDER == BIG_ENDIAN
- uint8_t reserved : 1; //!< Reserved.
- uint8_t ack : 1; //!< 0 : ACK, 1 : NACK.
- uint8_t ring : 1; //!< Not supported.
- uint8_t generateBreak : 1; //!< Not supported.
- uint8_t cts : 1; //!< Not supported.
- uint8_t dcd : 1; //!< Not supported.
- uint8_t flushIn : 1; //!< Not supported.
- uint8_t flushOut : 1; //!< Not supported.
+ uint8_t reserved:1; //!< Reserved.
+ uint8_t ack:1; //!< 0 : ACK, 1 : NACK.
+ uint8_t ring:1; //!< Not supported.
+ uint8_t generateBreak:1; //!< Not supported.
+ uint8_t cts:1; //!< Not supported.
+ uint8_t dcd:1; //!< Not supported.
+ uint8_t flushIn:1; //!< Not supported.
+ uint8_t flushOut:1; //!< Not supported.
#endif
} __attribute__((packed));