clang-format: update latest spec and reformat
Copy the latest format file from the docs repository and apply.
Change-Id: Iac0e4028f0f9b69046acdd35a4f531680793fe3d
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/inc/post_code.hpp b/inc/post_code.hpp
index db7533f..9127cbf 100644
--- a/inc/post_code.hpp
+++ b/inc/post_code.hpp
@@ -131,8 +131,8 @@
~PostCode() {}
std::vector<postcode_t> getPostCodes(uint16_t index) override;
- std::map<uint64_t, postcode_t>
- getPostCodesWithTimeStamp(uint16_t index) override;
+ std::map<uint64_t, postcode_t> getPostCodesWithTimeStamp(
+ uint16_t index) override;
void deleteAll() override;
private:
diff --git a/src/post_code.cpp b/src/post_code.cpp
index 6473562..82791c2 100644
--- a/src/post_code.cpp
+++ b/src/post_code.cpp
@@ -58,8 +58,8 @@
return codesVec;
}
-std::map<uint64_t, postcode_t>
- PostCode::getPostCodesWithTimeStamp(uint16_t index)
+std::map<uint64_t, postcode_t> PostCode::getPostCodesWithTimeStamp(
+ uint16_t index)
{
if (1 == index && !postCodes.empty())
{