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: I0a1783b101aa4e7d4b80fd5e1fc1b2beb86c5caa
diff --git a/bifurcation/bifurcation_static.cpp b/bifurcation/bifurcation_static.cpp
index 66b0c9a..c4b0f89 100644
--- a/bifurcation/bifurcation_static.cpp
+++ b/bifurcation/bifurcation_static.cpp
@@ -17,10 +17,11 @@
#include <fmt/format.h>
+#include <nlohmann/json.hpp>
+
#include <charconv>
#include <filesystem>
#include <fstream>
-#include <nlohmann/json.hpp>
#include <optional>
#include <string_view>
#include <vector>
@@ -32,13 +33,11 @@
BifurcationStatic::BifurcationStatic() :
BifurcationStatic(STATIC_BIFURCATION_CONFIG)
-{
-}
+{}
BifurcationStatic::BifurcationStatic(std::string_view bifurcationFile) :
bifurcationFile(bifurcationFile)
-{
-}
+{}
std::optional<std::vector<uint8_t>>
BifurcationStatic::getBifurcation(uint8_t index) noexcept
@@ -77,7 +76,7 @@
auto value = jsonData[key];
value.get_to(vec);
}
- catch (std::exception const& e)
+ catch (const std::exception& e)
{
fmt::print(stderr,
"Failed to convert bifurcation value to vec[uin8_t]\n");