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/command/channel_auth.hpp b/command/channel_auth.hpp
index a1f9af7..7dc4677 100644
--- a/command/channel_auth.hpp
+++ b/command/channel_auth.hpp
@@ -31,69 +31,69 @@
     // received on
 
 #if BYTE_ORDER == LITTLE_ENDIAN
-    uint8_t none : 1;
-    uint8_t md2 : 1;
-    uint8_t md5 : 1;
-    uint8_t reserved2 : 1;
-    uint8_t straightKey : 1; // Straight password/key support
+    uint8_t none:1;
+    uint8_t md2:1;
+    uint8_t md5:1;
+    uint8_t reserved2:1;
+    uint8_t straightKey:1; // Straight password/key support
     // Support OEM identified by the IANA OEM ID in RMCP+ ping response
-    uint8_t oem : 1;
-    uint8_t reserved1 : 1;
-    uint8_t ipmiVersion : 1; // 0b = IPMIV1.5 support only, 1B = IPMI V2.0
+    uint8_t oem:1;
+    uint8_t reserved1:1;
+    uint8_t ipmiVersion:1; // 0b = IPMIV1.5 support only, 1B = IPMI V2.0
     // support
 #endif
 
 #if BYTE_ORDER == BIG_ENDIAN
-    uint8_t ipmiVersion : 1; // 0b = IPMIV1.5 support only, 1B = IPMI V2.0
+    uint8_t ipmiVersion:1; // 0b = IPMIV1.5 support only, 1B = IPMI V2.0
     // support
-    uint8_t reserved1 : 1;
+    uint8_t reserved1:1;
     // Support OEM identified by the IANA OEM ID in RMCP+ ping response
-    uint8_t oem : 1;
-    uint8_t straightKey : 1; // Straight password/key support
-    uint8_t reserved2 : 1;
-    uint8_t md5 : 1;
-    uint8_t md2 : 1;
-    uint8_t none : 1;
+    uint8_t oem:1;
+    uint8_t straightKey:1; // Straight password/key support
+    uint8_t reserved2:1;
+    uint8_t md5:1;
+    uint8_t md2:1;
+    uint8_t none:1;
 #endif
 
 #if BYTE_ORDER == LITTLE_ENDIAN
     // Anonymous login status for anonymous login enabled/disabled
-    uint8_t anonymousLogin : 1;
+    uint8_t anonymousLogin:1;
     // Anonymous login status for null usernames enabled/disabled
-    uint8_t nullUsers : 1;
+    uint8_t nullUsers:1;
     // Anonymous login status for non-null usernames enabled/disabled
-    uint8_t nonNullUsers : 1;
-    uint8_t userAuth : 1;       // User level authentication status
-    uint8_t perMessageAuth : 1; // Per-message authentication support
+    uint8_t nonNullUsers:1;
+    uint8_t userAuth:1;       // User level authentication status
+    uint8_t perMessageAuth:1; // Per-message authentication support
     // Two key login status . only for IPMI V2.0 RMCP+ RAKP
-    uint8_t KGStatus : 1;
-    uint8_t reserved3 : 2;
+    uint8_t KGStatus:1;
+    uint8_t reserved3:2;
 #endif
 
 #if BYTE_ORDER == BIG_ENDIAN
-    uint8_t reserved3 : 2;
+    uint8_t reserved3:2;
     // Two key login status . only for IPMI V2.0 RMCP+ RAKP
-    uint8_t KGStatus : 1;
-    uint8_t perMessageAuth : 1; // Per-message authentication support
-    uint8_t userAuth : 1;       // User level authentication status
+    uint8_t KGStatus:1;
+    uint8_t perMessageAuth:1; // Per-message authentication support
+    uint8_t userAuth:1;       // User level authentication status
     // Anonymous login status for non-null usernames enabled/disabled
-    uint8_t nonNullUsers : 1;
+    uint8_t nonNullUsers:1;
     // Anonymous login status for null usernames enabled/disabled
-    uint8_t nullUsers : 1;
+    uint8_t nullUsers:1;
     // Anonymous login status for anonymous login enabled/disabled
-    uint8_t anonymousLogin : 1;
+    uint8_t anonymousLogin:1;
 #endif
 
 #if BYTE_ORDER == LITTLE_ENDIAN
     // Extended capabilities will be present only if IPMI version is V2.0
-    uint8_t extCapabilities : 2; // Channel support for IPMI V2.0 connections
-    uint8_t reserved4 : 6;
+    uint8_t extCapabilities:2; // Channel support for IPMI V2.0 connections
+    uint8_t reserved4:6;
 #endif
 
 #if BYTE_ORDER == BIG_ENDIAN
     // Extended capabilities will be present only if IPMI version is V2.0
-    uint8_t reserved4 : 6;
-    uint8_t extCapabilities : 2; // Channel support for IPMI V2.0 connections
+    uint8_t reserved4:6;
+    uint8_t extCapabilities:2; // Channel support for IPMI V2.0 connections
 #endif
 
     // Below 4 bytes will all the 0's if no OEM authentication type available.
diff --git a/command/guid.cpp b/command/guid.cpp
index 4fdece8..934853a 100644
--- a/command/guid.cpp
+++ b/command/guid.cpp
@@ -142,7 +142,7 @@
                         "Failed to parse propertiesChanged signal: {ERROR}",
                         "ERROR", e);
                 }
-                });
+            });
         }
         catch (const std::exception& e)
         {
diff --git a/command/open_session.hpp b/command/open_session.hpp
index e119dbc..2e17bf3 100644
--- a/command/open_session.hpp
+++ b/command/open_session.hpp
@@ -17,13 +17,13 @@
     uint8_t messageTag; // Message tag from request buffer
 
 #if BYTE_ORDER == LITTLE_ENDIAN
-    uint8_t maxPrivLevel : 4; // Requested maximum privilege level
-    uint8_t reserved1 : 4;    // Reserved for future definition
+    uint8_t maxPrivLevel:4; // Requested maximum privilege level
+    uint8_t reserved1:4;    // Reserved for future definition
 #endif
 
 #if BYTE_ORDER == BIG_ENDIAN
-    uint8_t reserved1 : 4;    // Reserved for future definition
-    uint8_t maxPrivLevel : 4; // Requested maximum privilege level
+    uint8_t reserved1:4;    // Reserved for future definition
+    uint8_t maxPrivLevel:4; // Requested maximum privilege level
 
 #endif
 
@@ -35,13 +35,13 @@
     uint8_t authPayloadLen;
 
 #if BYTE_ORDER == LITTLE_ENDIAN
-    uint8_t authAlgo : 6;
-    uint8_t reserved4 : 2;
+    uint8_t authAlgo:6;
+    uint8_t reserved4:2;
 #endif
 
 #if BYTE_ORDER == BIG_ENDIAN
-    uint8_t reserved4 : 2;
-    uint8_t authAlgo : 6;
+    uint8_t reserved4:2;
+    uint8_t authAlgo:6;
 #endif
 
     uint8_t reserved5;
@@ -52,13 +52,13 @@
     uint8_t intPayloadLen;
 
 #if BYTE_ORDER == LITTLE_ENDIAN
-    uint8_t intAlgo : 6;
-    uint8_t reserved8 : 2;
+    uint8_t intAlgo:6;
+    uint8_t reserved8:2;
 #endif
 
 #if BYTE_ORDER == BIG_ENDIAN
-    uint8_t reserved8 : 2;
-    uint8_t intAlgo : 6;
+    uint8_t reserved8:2;
+    uint8_t intAlgo:6;
 #endif
 
     uint8_t reserved9;
@@ -69,13 +69,13 @@
     uint8_t confPayloadLen;
 
 #if BYTE_ORDER == LITTLE_ENDIAN
-    uint8_t confAlgo : 6;
-    uint8_t reserved12 : 2;
+    uint8_t confAlgo:6;
+    uint8_t reserved12:2;
 #endif
 
 #if BYTE_ORDER == BIG_ENDIAN
-    uint8_t reserved12 : 2;
-    uint8_t confAlgo : 6;
+    uint8_t reserved12:2;
+    uint8_t confAlgo:6;
 #endif
 
     uint8_t reserved13;
@@ -93,13 +93,13 @@
     uint8_t status_code;
 
 #if BYTE_ORDER == LITTLE_ENDIAN
-    uint8_t maxPrivLevel : 4;
-    uint8_t reserved1 : 4;
+    uint8_t maxPrivLevel:4;
+    uint8_t reserved1:4;
 #endif
 
 #if BYTE_ORDER == BIG_ENDIAN
-    uint8_t reserved1 : 4;
-    uint8_t maxPrivLevel : 4;
+    uint8_t reserved1:4;
+    uint8_t maxPrivLevel:4;
 #endif
 
     uint8_t reserved2;
@@ -111,13 +111,13 @@
     uint8_t authPayloadLen;
 
 #if BYTE_ORDER == LITTLE_ENDIAN
-    uint8_t authAlgo : 6;
-    uint8_t reserved4 : 2;
+    uint8_t authAlgo:6;
+    uint8_t reserved4:2;
 #endif
 
 #if BYTE_ORDER == BIG_ENDIAN
-    uint8_t reserved4 : 2;
-    uint8_t authAlgo : 6;
+    uint8_t reserved4:2;
+    uint8_t authAlgo:6;
 #endif
 
     uint8_t reserved5;
@@ -128,13 +128,13 @@
     uint8_t intPayloadLen;
 
 #if BYTE_ORDER == LITTLE_ENDIAN
-    uint8_t intAlgo : 6;
-    uint8_t reserved8 : 2;
+    uint8_t intAlgo:6;
+    uint8_t reserved8:2;
 #endif
 
 #if BYTE_ORDER == BIG_ENDIAN
-    uint8_t reserved8 : 2;
-    uint8_t intAlgo : 6;
+    uint8_t reserved8:2;
+    uint8_t intAlgo:6;
 
 #endif
 
@@ -146,13 +146,13 @@
     uint8_t confPayloadLen;
 
 #if BYTE_ORDER == LITTLE_ENDIAN
-    uint8_t confAlgo : 6;
-    uint8_t reserved12 : 2;
+    uint8_t confAlgo:6;
+    uint8_t reserved12:2;
 #endif
 
 #if BYTE_ORDER == BIG_ENDIAN
-    uint8_t reserved12 : 2;
-    uint8_t confAlgo : 6;
+    uint8_t reserved12:2;
+    uint8_t confAlgo:6;
 #endif
 
     uint8_t reserved13;
diff --git a/command/payload_cmds.hpp b/command/payload_cmds.hpp
index bbd220a..470d693 100644
--- a/command/payload_cmds.hpp
+++ b/command/payload_cmds.hpp
@@ -23,46 +23,46 @@
 struct ActivatePayloadRequest
 {
 #if BYTE_ORDER == LITTLE_ENDIAN
-    uint8_t payloadType : 6; //!< Payload type.
-    uint8_t reserved1 : 2;   //!< Reserved.
+    uint8_t payloadType:6; //!< Payload type.
+    uint8_t reserved1:2;   //!< Reserved.
 #endif
 
 #if BYTE_ORDER == BIG_ENDIAN
-    uint8_t reserved1 : 2;   //!< Payload type.
-    uint8_t payloadType : 6; //!< Payload type.
+    uint8_t reserved1:2;   //!< Payload type.
+    uint8_t payloadType:6; //!< Payload type.
 #endif
 
 #if BYTE_ORDER == LITTLE_ENDIAN
-    uint8_t payloadInstance : 4; //!< Payload instance.
-    uint8_t reserved2 : 4;       //!< Reserved.
+    uint8_t payloadInstance:4; //!< Payload instance.
+    uint8_t reserved2:4;       //!< Reserved.
 #endif
 
 #if BYTE_ORDER == BIG_ENDIAN
-    uint8_t reserved2 : 4;       //!< Reserved.
-    uint8_t payloadInstance : 4; //!< Payload instance.
+    uint8_t reserved2:4;       //!< Reserved.
+    uint8_t payloadInstance:4; //!< Payload instance.
 #endif
 
     /** @brief The following Auxiliary Request Data applies only for payload
      *         SOL only.
      */
 #if BYTE_ORDER == LITTLE_ENDIAN
-    uint8_t reserved4 : 1;  //!< Reserved.
-    uint8_t handshake : 1;  //!< SOL startup handshake.
-    uint8_t alert : 2;      //!< Shared serial alert behavior.
-    uint8_t reserved3 : 1;  //!< Reserved.
-    uint8_t testMode : 1;   //!< Test mode.
-    uint8_t auth : 1;       //!< If true, activate payload with authentication.
-    uint8_t encryption : 1; //!< If true, activate payload with encryption.
+    uint8_t reserved4:1;  //!< Reserved.
+    uint8_t handshake:1;  //!< SOL startup handshake.
+    uint8_t alert:2;      //!< Shared serial alert behavior.
+    uint8_t reserved3:1;  //!< Reserved.
+    uint8_t testMode:1;   //!< Test mode.
+    uint8_t auth:1;       //!< If true, activate payload with authentication.
+    uint8_t encryption:1; //!< If true, activate payload with encryption.
 #endif
 
 #if BYTE_ORDER == BIG_ENDIAN
-    uint8_t encryption : 1; //!< If true, activate payload with encryption.
-    uint8_t auth : 1;       //!< If true, activate payload with authentication.
-    uint8_t testMode : 1;   //!< Test mode.
-    uint8_t reserved3 : 1;  //!< Reserved.
-    uint8_t alert : 2;      //!< Shared serial alert behavior.
-    uint8_t handshake : 1;  //!< SOL startup handshake.
-    uint8_t reserved4 : 1;  //!< Reserved.
+    uint8_t encryption:1; //!< If true, activate payload with encryption.
+    uint8_t auth:1;       //!< If true, activate payload with authentication.
+    uint8_t testMode:1;   //!< Test mode.
+    uint8_t reserved3:1;  //!< Reserved.
+    uint8_t alert:2;      //!< Shared serial alert behavior.
+    uint8_t handshake:1;  //!< SOL startup handshake.
+    uint8_t reserved4:1;  //!< Reserved.
 #endif
 
     uint8_t reserved5; //!< Reserved.
@@ -83,13 +83,13 @@
 
     // Test Mode
 #if BYTE_ORDER == LITTLE_ENDIAN
-    uint8_t testMode : 1;  //!< Test mode.
-    uint8_t reserved4 : 7; //!< Reserved.
+    uint8_t testMode:1;  //!< Test mode.
+    uint8_t reserved4:7; //!< Reserved.
 #endif
 
 #if BYTE_ORDER == BIG_ENDIAN
-    uint8_t reserved4 : 7; //!< Reserved.
-    uint8_t testMode : 1;  //!< Test mode.
+    uint8_t reserved4:7; //!< Reserved.
+    uint8_t testMode:1;  //!< Test mode.
 #endif
 
     uint16_t inPayloadSize;  //!< Inbound payload size
@@ -122,23 +122,23 @@
 struct DeactivatePayloadRequest
 {
 #if BYTE_ORDER == LITTLE_ENDIAN
-    uint8_t payloadType : 6; //!< Payload type.
-    uint8_t reserved1 : 2;   //!< Reserved.
+    uint8_t payloadType:6; //!< Payload type.
+    uint8_t reserved1:2;   //!< Reserved.
 #endif
 
 #if BYTE_ORDER == BIG_ENDIAN
-    uint8_t reserved1 : 2;   //!< Payload type.
-    uint8_t payloadType : 6; //!< Reserved.
+    uint8_t reserved1:2;   //!< Payload type.
+    uint8_t payloadType:6; //!< Reserved.
 #endif
 
 #if BYTE_ORDER == LITTLE_ENDIAN
-    uint8_t payloadInstance : 4; //!< Payload instance.
-    uint8_t reserved2 : 4;       //!< Reserved.
+    uint8_t payloadInstance:4; //!< Payload instance.
+    uint8_t reserved2:4;       //!< Reserved.
 #endif
 
 #if BYTE_ORDER == BIG_ENDIAN
-    uint8_t reserved2 : 4;       //!< Reserved.
-    uint8_t payloadInstance : 4; //!< Payload instance.
+    uint8_t reserved2:4;       //!< Reserved.
+    uint8_t payloadInstance:4; //!< Payload instance.
 #endif
 
     /** @brief No auxiliary data for payload type SOL */
@@ -198,47 +198,47 @@
 
     /* @brief Activation Status. */
 #if BYTE_ORDER == LITTLE_ENDIAN
-    uint8_t instance1 : 1; //!< If true, Instance 1 is activated.
-    uint8_t instance2 : 1; //!< If true, Instance 2 is activated.
-    uint8_t instance3 : 1; //!< If true, Instance 3 is activated.
-    uint8_t instance4 : 1; //!< If true, Instance 4 is activated.
-    uint8_t instance5 : 1; //!< If true, Instance 5 is activated.
-    uint8_t instance6 : 1; //!< If true, Instance 6 is activated.
-    uint8_t instance7 : 1; //!< If true, Instance 7 is activated.
-    uint8_t instance8 : 1; //!< If true, Instance 8 is activated.
+    uint8_t instance1:1; //!< If true, Instance 1 is activated.
+    uint8_t instance2:1; //!< If true, Instance 2 is activated.
+    uint8_t instance3:1; //!< If true, Instance 3 is activated.
+    uint8_t instance4:1; //!< If true, Instance 4 is activated.
+    uint8_t instance5:1; //!< If true, Instance 5 is activated.
+    uint8_t instance6:1; //!< If true, Instance 6 is activated.
+    uint8_t instance7:1; //!< If true, Instance 7 is activated.
+    uint8_t instance8:1; //!< If true, Instance 8 is activated.
 #endif
 
 #if BYTE_ORDER == BIG_ENDIAN
-    uint8_t instance8 : 1; //!< If true, Instance 8 is activated.
-    uint8_t instance7 : 1; //!< If true, Instance 7 is activated.
-    uint8_t instance6 : 1; //!< If true, Instance 6 is activated.
-    uint8_t instance5 : 1; //!< If true, Instance 5 is activated.
-    uint8_t instance4 : 1; //!< If true, Instance 4 is activated.
-    uint8_t instance3 : 1; //!< If true, Instance 3 is activated.
-    uint8_t instance2 : 1; //!< If true, Instance 2 is activated.
-    uint8_t instance1 : 1; //!< If true, Instance 1 is activated.
+    uint8_t instance8:1; //!< If true, Instance 8 is activated.
+    uint8_t instance7:1; //!< If true, Instance 7 is activated.
+    uint8_t instance6:1; //!< If true, Instance 6 is activated.
+    uint8_t instance5:1; //!< If true, Instance 5 is activated.
+    uint8_t instance4:1; //!< If true, Instance 4 is activated.
+    uint8_t instance3:1; //!< If true, Instance 3 is activated.
+    uint8_t instance2:1; //!< If true, Instance 2 is activated.
+    uint8_t instance1:1; //!< If true, Instance 1 is activated.
 #endif
 
 #if BYTE_ORDER == LITTLE_ENDIAN
-    uint8_t instance9 : 1;  //!< If true, Instance 9 is activated.
-    uint8_t instance10 : 1; //!< If true, Instance 10 is activated.
-    uint8_t instance11 : 1; //!< If true, Instance 11 is activated.
-    uint8_t instance12 : 1; //!< If true, Instance 12 is activated.
-    uint8_t instance13 : 1; //!< If true, Instance 13 is activated.
-    uint8_t instance14 : 1; //!< If true, Instance 14 is activated.
-    uint8_t instance15 : 1; //!< If true, Instance 15 is activated.
-    uint8_t instance16 : 1; //!< If true, Instance 16 is activated.
+    uint8_t instance9:1;  //!< If true, Instance 9 is activated.
+    uint8_t instance10:1; //!< If true, Instance 10 is activated.
+    uint8_t instance11:1; //!< If true, Instance 11 is activated.
+    uint8_t instance12:1; //!< If true, Instance 12 is activated.
+    uint8_t instance13:1; //!< If true, Instance 13 is activated.
+    uint8_t instance14:1; //!< If true, Instance 14 is activated.
+    uint8_t instance15:1; //!< If true, Instance 15 is activated.
+    uint8_t instance16:1; //!< If true, Instance 16 is activated.
 #endif
 
 #if BYTE_ORDER == BIG_ENDIAN
-    uint8_t instance16 : 1; //!< If true, Instance 16 is activated.
-    uint8_t instance15 : 1; //!< If true, Instance 15 is activated.
-    uint8_t instance14 : 1; //!< If true, Instance 14 is activated.
-    uint8_t instance13 : 1; //!< If true, Instance 13 is activated.
-    uint8_t instance12 : 1; //!< If true, Instance 12 is activated.
-    uint8_t instance11 : 1; //!< If true, Instance 11 is activated.
-    uint8_t instance10 : 1; //!< If true, Instance 10 is activated.
-    uint8_t instance9 : 1;  //!< If true, Instance 9 is activated.
+    uint8_t instance16:1; //!< If true, Instance 16 is activated.
+    uint8_t instance15:1; //!< If true, Instance 15 is activated.
+    uint8_t instance14:1; //!< If true, Instance 14 is activated.
+    uint8_t instance13:1; //!< If true, Instance 13 is activated.
+    uint8_t instance12:1; //!< If true, Instance 12 is activated.
+    uint8_t instance11:1; //!< If true, Instance 11 is activated.
+    uint8_t instance10:1; //!< If true, Instance 10 is activated.
+    uint8_t instance9:1;  //!< If true, Instance 9 is activated.
 #endif
 } __attribute__((packed));
 
diff --git a/command/session_cmds.hpp b/command/session_cmds.hpp
index 05c312e..b3d0ca6 100644
--- a/command/session_cmds.hpp
+++ b/command/session_cmds.hpp
@@ -22,13 +22,13 @@
 struct SetSessionPrivLevelReq
 {
 #if BYTE_ORDER == LITTLE_ENDIAN
-    uint8_t reqPrivLevel : 4;
-    uint8_t reserved : 4;
+    uint8_t reqPrivLevel:4;
+    uint8_t reserved:4;
 #endif
 
 #if BYTE_ORDER == BIG_ENDIAN
-    uint8_t reserved : 4;
-    uint8_t reqPrivLevel : 4;
+    uint8_t reserved:4;
+    uint8_t reqPrivLevel:4;
 #endif
 
 } __attribute__((packed));
@@ -43,13 +43,13 @@
     uint8_t completionCode;
 
 #if BYTE_ORDER == LITTLE_ENDIAN
-    uint8_t newPrivLevel : 4;
-    uint8_t reserved : 4;
+    uint8_t newPrivLevel:4;
+    uint8_t reserved:4;
 #endif
 
 #if BYTE_ORDER == BIG_ENDIAN
-    uint8_t reserved : 4;
-    uint8_t newPrivLevel : 4;
+    uint8_t reserved:4;
+    uint8_t newPrivLevel:4;
 #endif
 
 } __attribute__((packed));
diff --git a/command/sol_cmds.hpp b/command/sol_cmds.hpp
index 9aedfdd..b18b292 100644
--- a/command/sol_cmds.hpp
+++ b/command/sol_cmds.hpp
@@ -34,13 +34,13 @@
 struct ActivatingRequest
 {
 #if BYTE_ORDER == LITTLE_ENDIAN
-    uint8_t sessionState : 4; //!< SOL session state.
-    uint8_t reserved : 4;     //!< Reserved.
+    uint8_t sessionState:4; //!< SOL session state.
+    uint8_t reserved:4;     //!< Reserved.
 #endif
 
 #if BYTE_ORDER == BIG_ENDIAN
-    uint8_t reserved : 4;     //!< Reserved.
-    uint8_t sessionState : 4; //!< SOL session state.
+    uint8_t reserved:4;     //!< Reserved.
+    uint8_t sessionState:4; //!< SOL session state.
 #endif
 
     uint8_t payloadInstance; //!< Payload instance.