clang-format: update latest spec and reformat with clang-20
Copy the latest format file from the docs repository and apply using
clang-format-20.
See I1818407fdd8ab2ca11a939ffebd5f3e5445403c3 for clang-20 enablement.
Change-Id: I8c092b5399d495b8ca0958390fade19388320d58
Signed-off-by: Patrick Williams <patrick@stwcx.xyz>
diff --git a/.clang-format b/.clang-format
index a75a2c2..e5530e6 100644
--- a/.clang-format
+++ b/.clang-format
@@ -104,7 +104,7 @@
PenaltyBreakString: 1000
PenaltyBreakTemplateDeclaration: 10
PenaltyExcessCharacter: 1000000
-PenaltyReturnTypeOnItsOwnLine: 60
+PenaltyReturnTypeOnItsOwnLine: 150
PenaltyIndentedWhitespace: 1
PointerAlignment: Left
QualifierAlignment: Left
diff --git a/include/cryptsetupInterface.hpp b/include/cryptsetupInterface.hpp
index f537a0f..b498e2e 100644
--- a/include/cryptsetupInterface.hpp
+++ b/include/cryptsetupInterface.hpp
@@ -154,8 +154,8 @@
*
* @return value defined by crypt_keyslot_info
*/
- virtual crypt_keyslot_info
- cryptKeySlotStatus(struct crypt_device* cd, int keyslot) = 0;
+ virtual crypt_keyslot_info cryptKeySlotStatus(struct crypt_device* cd,
+ int keyslot) = 0;
/** @brief Wrapper around crypt_get_dir.
* @details Used for mocking purposes.