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: Iad285e60cad29e025a02d0c0cabcb76fe593b5cf
Signed-off-by: Patrick Williams <patrick@stwcx.xyz>
diff --git a/inc/button_factory.hpp b/inc/button_factory.hpp
index 69e05a9..faf948d 100644
--- a/inc/button_factory.hpp
+++ b/inc/button_factory.hpp
@@ -38,9 +38,9 @@
buttonIfaceRegistry[std::string(T::getFormFactorName())] =
[](sdbusplus::bus_t& bus, EventPtr& event,
buttonConfig& buttonCfg) {
- return std::make_unique<T>(bus, T::getDbusObjectPath(), event,
- buttonCfg);
- };
+ return std::make_unique<T>(bus, T::getDbusObjectPath(), event,
+ buttonCfg);
+ };
}
/**
* @brief this method returns the button interface object
@@ -77,4 +77,4 @@
// register the class factory function
ButtonFactory::instance().addToRegistry<T>();
}
-};
\ No newline at end of file
+};
diff --git a/inc/button_interface.hpp b/inc/button_interface.hpp
index f05beb9..9905304 100644
--- a/inc/button_interface.hpp
+++ b/inc/button_interface.hpp
@@ -28,8 +28,7 @@
IOError();
}
}
- virtual ~ButtonIface()
- {}
+ virtual ~ButtonIface() {}
/**
* @brief This method is called from sd-event provided callback function
diff --git a/inc/serial_uart_mux.hpp b/inc/serial_uart_mux.hpp
index 5c506b9..c1ad166 100644
--- a/inc/serial_uart_mux.hpp
+++ b/inc/serial_uart_mux.hpp
@@ -72,8 +72,7 @@
void configSerialConsoleMux(size_t position);
bool isOCPDebugCardPresent();
- void handleEvent(sd_event_source*, int, uint32_t)
- {}
+ void handleEvent(sd_event_source*, int, uint32_t) {}
protected:
size_t gpioLineCount;