diff options
author | Patrick Venture <venture@google.com> | 2018-08-31 10:10:53 -0700 |
---|---|---|
committer | Patrick Venture <venture@google.com> | 2018-08-31 12:42:31 -0700 |
commit | 043d32306e00484afc446a44789b61869ea14f84 (patch) | |
tree | 786a28de89a2a916ba5c2e4b73411516a10dc8af /hwmon.cpp | |
parent | 901f117733c828aa7519610eb23ce112b9d068a8 (diff) | |
download | phosphor-hwmon-043d32306e00484afc446a44789b61869ea14f84.tar.gz phosphor-hwmon-043d32306e00484afc446a44789b61869ea14f84.zip |
add .clang-format
Change-Id: I94ce26d595367e08d6fb3734535bcd855f1b1473
Signed-off-by: Patrick Venture <venture@google.com>
Diffstat (limited to 'hwmon.cpp')
-rw-r--r-- | hwmon.cpp | 15 |
1 files changed, 6 insertions, 9 deletions
@@ -1,17 +1,14 @@ #include "hwmon.hpp" -namespace hwmon { +namespace hwmon +{ bool getAttributes(const std::string& type, Attributes& attributes) { // *INDENT-OFF* - auto a = std::find_if( - typeAttrMap.begin(), - typeAttrMap.end(), - [&](const auto & e) - { - return type == getHwmonType(e); - }); + auto a = + std::find_if(typeAttrMap.begin(), typeAttrMap.end(), + [&](const auto& e) { return type == getHwmonType(e); }); // *INDENT-ON* if (a == typeAttrMap.end()) @@ -23,4 +20,4 @@ bool getAttributes(const std::string& type, Attributes& attributes) return true; } -} // namespace hwmon +} // namespace hwmon |