add clang-tidy
This commit implements a clang-tidy file, and makes some changes to get
it to pass. Most changes are naming or mechanical in nature.
Tested:
Clang-tidy now passes.
Signed-off-by: Ed Tanous <ed@tanous.net>
Change-Id: Ia441e4801b6c8725421d160c531c5df141f255d4
diff --git a/include/sensor.hpp b/include/sensor.hpp
index 0ef87d5..115b8fa 100644
--- a/include/sensor.hpp
+++ b/include/sensor.hpp
@@ -1,8 +1,7 @@
#pragma once
-#include "Thresholds.hpp"
-#include "Utils.hpp"
-
+#include <Thresholds.hpp>
+#include <Utils.hpp>
#include <sdbusplus/asio/object_server.hpp>
#include <limits>
@@ -182,7 +181,7 @@
void
setInitialProperties(std::shared_ptr<sdbusplus::asio::connection>& conn,
- const std::string label = std::string(),
+ const std::string& label = std::string(),
size_t thresholdSize = 0)
{
if (readState == PowerState::on || readState == PowerState::biosPost)