diff options
author | Gunnar Mills <gmills@us.ibm.com> | 2018-09-14 14:50:03 -0500 |
---|---|---|
committer | Brad Bishop <bradleyb@fuzziesquirrel.com> | 2018-10-18 16:43:22 -0400 |
commit | 94df8c9015798764d40665bb363bdbf27510f285 (patch) | |
tree | ce26611a482f2f03a582838faec29eeb065a6c47 /i2c_occ.cpp | |
parent | 7db89e36d7c5649b826b607cb2d90e38bb02ab86 (diff) | |
download | openpower-occ-control-94df8c9015798764d40665bb363bdbf27510f285.tar.gz openpower-occ-control-94df8c9015798764d40665bb363bdbf27510f285.zip |
clang-format: Update to match docs repo
Update the .clang-format file and run clang-format-6.0.
This .clang-format matches the example one in
https://github.com/openbmc/docs/blob/master/cpp-style-and-conventions.md#clang-formatting
Change-Id: Id6760866dedbaeafd83ea8ef2e0303e30b8955aa
Signed-off-by: Gunnar Mills <gmills@us.ibm.com>
Signed-off-by: Brad Bishop <bradleyb@fuzziesquirrel.com>
Diffstat (limited to 'i2c_occ.cpp')
-rw-r--r-- | i2c_occ.cpp | 14 |
1 files changed, 7 insertions, 7 deletions
diff --git a/i2c_occ.cpp b/i2c_occ.cpp index 00e4187..1c1a9ff 100644 --- a/i2c_occ.cpp +++ b/i2c_occ.cpp @@ -1,10 +1,11 @@ +#include "config.h" + +#include "i2c_occ.hpp" + #include <algorithm> #include <cassert> #include <fstream> -#include "config.h" -#include "i2c_occ.hpp" - #ifdef I2C_OCC namespace i2c_occ @@ -20,8 +21,8 @@ constexpr auto DEVICE_NAME_LENGTH = 12; constexpr auto OCC_NAME_LENGTH = 3; // static assert to make sure the i2c occ device name is expected -static_assert(sizeof(I2C_OCC_DEVICE_NAME) -1 == DEVICE_NAME_LENGTH); -static_assert(sizeof(OCC_NAME) -1 == OCC_NAME_LENGTH); +static_assert(sizeof(I2C_OCC_DEVICE_NAME) - 1 == DEVICE_NAME_LENGTH); +static_assert(sizeof(OCC_NAME) - 1 == OCC_NAME_LENGTH); static bool isMasterOcc(const fs::directory_entry& p) { @@ -48,7 +49,7 @@ std::vector<std::string> getOccHwmonDevices(const char* path) if (fs::is_directory(path)) { - for (auto & p : fs::directory_iterator(path)) + for (auto& p : fs::directory_iterator(path)) { // Check if a device's name is "p8-occ-hwmon" auto f = p / "name"; @@ -102,4 +103,3 @@ std::string getI2cDeviceName(const std::string& dbusPath) } // namespace i2c_occ #endif - |