From 043d32306e00484afc446a44789b61869ea14f84 Mon Sep 17 00:00:00 2001 From: Patrick Venture Date: Fri, 31 Aug 2018 10:10:53 -0700 Subject: add .clang-format Change-Id: I94ce26d595367e08d6fb3734535bcd855f1b1473 Signed-off-by: Patrick Venture --- hwmon.cpp | 15 ++++++--------- 1 file changed, 6 insertions(+), 9 deletions(-) (limited to 'hwmon.cpp') diff --git a/hwmon.cpp b/hwmon.cpp index 4eb47ae..adde6e4 100644 --- a/hwmon.cpp +++ b/hwmon.cpp @@ -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 -- cgit v1.2.1