clang-format: update to latest version
Pick up latest .clang-format file from the docs repository.
Fix formatting on all files.
Minor compile fixes due to GCC10 and sdbusplus changes.
Signed-off-by: Patrick Williams <patrick@stwcx.xyz>
Change-Id: Ie1f7a4e59b6cf015310effef50d558ff59731024
diff --git a/power-supply/record_manager.hpp b/power-supply/record_manager.hpp
index 7ebcc3f..98382c7 100644
--- a/power-supply/record_manager.hpp
+++ b/power-supply/record_manager.hpp
@@ -1,6 +1,8 @@
#pragma once
+#include <cstdint>
#include <deque>
+#include <stdexcept>
#include <tuple>
#include <vector>
@@ -27,8 +29,7 @@
{
public:
InvalidRecordException() : std::runtime_error("Invalid history record")
- {
- }
+ {}
};
/**
@@ -70,8 +71,7 @@
* records to keep at a time
*/
RecordManager(size_t maxRec) : RecordManager(maxRec, LAST_SEQUENCE_ID)
- {
- }
+ {}
/**
* @brief Constructor
@@ -83,8 +83,7 @@
*/
RecordManager(size_t maxRec, size_t lastSequenceID) :
maxRecords(maxRec), lastSequenceID(lastSequenceID)
- {
- }
+ {}
/**
* @brief Adds a new entry to the history