summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorPatrick Venture <venture@google.com>2018-09-04 09:44:49 -0700
committerPatrick Venture <venture@google.com>2018-09-04 09:46:46 -0700
commitc9c818ed854f23a87dd77c2209b6a27805825adb (patch)
tree436b52857dc739da6e2653d11e2e8a953c7cda1e
parent043d32306e00484afc446a44789b61869ea14f84 (diff)
downloadphosphor-hwmon-c9c818ed854f23a87dd77c2209b6a27805825adb.tar.gz
phosphor-hwmon-c9c818ed854f23a87dd77c2209b6a27805825adb.zip
hwmon: revert alignment change and fix-up
Using clang-format off/on instead of INDENT-OFF/ON. Change-Id: If4ecec970cfc456f8461c42e03159df29b4e8542 Signed-off-by: Patrick Venture <venture@google.com>
-rw-r--r--hwmon.cpp13
1 files changed, 9 insertions, 4 deletions
diff --git a/hwmon.cpp b/hwmon.cpp
index adde6e4..bfb67aa 100644
--- a/hwmon.cpp
+++ b/hwmon.cpp
@@ -5,11 +5,16 @@ namespace hwmon
bool getAttributes(const std::string& type, Attributes& attributes)
{
- // *INDENT-OFF*
+ // clang-format off
auto a =
- std::find_if(typeAttrMap.begin(), typeAttrMap.end(),
- [&](const auto& e) { return type == getHwmonType(e); });
- // *INDENT-ON*
+ std::find_if(
+ typeAttrMap.begin(),
+ typeAttrMap.end(),
+ [&](const auto& e)
+ {
+ return type == getHwmonType(e);
+ });
+ // clang-format on
if (a == typeAttrMap.end())
{
OpenPOWER on IntegriCloud