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: I918b0a2e9d18c9810ee2940dbe78072754c75a94
Signed-off-by: Patrick Williams <patrick@stwcx.xyz>
diff --git a/manager/json-config.hpp b/manager/json-config.hpp
index 2c4e16d..4eb77db 100644
--- a/manager/json-config.hpp
+++ b/manager/json-config.hpp
@@ -70,17 +70,16 @@
*/
bool filePathExists(const std::vector<std::string>& names)
{
- auto it =
- std::find_if(names.begin(), names.end(), [this](const auto& name) {
- auto tempConfFile =
- fs::path{confBasePath} / name / confFileName;
- if (fs::exists(tempConfFile))
- {
- confFile = tempConfFile;
- return true;
- }
- return false;
- });
+ auto it = std::find_if(names.begin(), names.end(),
+ [this](const auto& name) {
+ auto tempConfFile = fs::path{confBasePath} / name / confFileName;
+ if (fs::exists(tempConfFile))
+ {
+ confFile = tempConfFile;
+ return true;
+ }
+ return false;
+ });
return it == names.end() ? false : true;
}
@@ -160,8 +159,8 @@
try
{
// Get all objects implementing the compatible interface
- auto objects =
- dBusHandler.getSubTreePaths("/", confCompatibleInterface);
+ auto objects = dBusHandler.getSubTreePaths("/",
+ confCompatibleInterface);
for (const auto& path : objects)
{
try