clang-format: copy latest and re-format
clang-format-16 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: Icd194181395c93ad4486785aec752f2096a00ea7
Signed-off-by: Patrick Williams <patrick@stwcx.xyz>
diff --git a/src/util/hei_bit_string.cpp b/src/util/hei_bit_string.cpp
index 5313d7a..d5c9b83 100644
--- a/src/util/hei_bit_string.cpp
+++ b/src/util/hei_bit_string.cpp
@@ -30,18 +30,18 @@
// Get the relative address of this byte and the relative starting position
// within the byte.
- uint64_t relPos = 0;
+ uint64_t relPos = 0;
uint8_t* relAddr = getRelativePosition(relPos, i_pos);
// Get the length of the target bit field within this byte and the length of
// the bit field for any remaining bits.
- uint64_t bf_len = i_len;
+ uint64_t bf_len = i_len;
uint64_t remain_len = 0;
if (UINT8_BIT_LEN < relPos + i_len)
{
// The target bit field crosses a byte boundary. So truncate the bit
// length for this byte and update the remaining length.
- bf_len = UINT8_BIT_LEN - relPos;
+ bf_len = UINT8_BIT_LEN - relPos;
remain_len = i_len - bf_len;
}
@@ -74,18 +74,18 @@
// Get the relative address of this byte and the relative starting position
// within the byte.
- uint64_t relPos = 0;
+ uint64_t relPos = 0;
uint8_t* relAddr = getRelativePosition(relPos, i_pos);
// Get the length of the target bit field within this byte and the length of
// the bit field for any remaining bits.
- uint64_t bf_len = i_len;
+ uint64_t bf_len = i_len;
uint64_t remain_len = 0;
if (UINT8_BIT_LEN < relPos + i_len)
{
// The target bit field crosses a byte boundary. So truncate the bit
// length for this byte and update the remaining length.
- bf_len = UINT8_BIT_LEN - relPos;
+ bf_len = UINT8_BIT_LEN - relPos;
remain_len = i_len - bf_len;
}
@@ -204,7 +204,7 @@
// Start with the last chunk and work backwards.
for (int32_t pos = lastPos; 0 <= pos; pos -= UINT64_BIT_LEN)
{
- uint64_t len = std::min(actLen - pos, UINT64_BIT_LEN);
+ uint64_t len = std::min(actLen - pos, UINT64_BIT_LEN);
uint64_t value = i_sStr.getFieldRight(i_sPos + pos, len);
setFieldRight(i_dPos + pos, len, value);
}
diff --git a/src/util/hei_flyweight.hpp b/src/util/hei_flyweight.hpp
index a81fe30..a4c063d 100644
--- a/src/util/hei_flyweight.hpp
+++ b/src/util/hei_flyweight.hpp
@@ -56,7 +56,7 @@
auto itr = std::lower_bound(
iv_index.begin(), iv_index.end(), newEntry,
[](const std::shared_ptr<T> a, const std::shared_ptr<T> b) {
- return *a < *b;
+ return *a < *b;
});
// std::lower_bound() will return the first element that does not