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/MCUTempSensor.hpp b/include/MCUTempSensor.hpp
index 2f3aef4..deb7102 100644
--- a/include/MCUTempSensor.hpp
+++ b/include/MCUTempSensor.hpp
@@ -1,8 +1,7 @@
#pragma once
-#include "sensor.hpp"
-
#include <boost/asio/deadline_timer.hpp>
#include <boost/container/flat_map.hpp>
+#include <sensor.hpp>
#include <chrono>
#include <limits>
@@ -18,7 +17,7 @@
sdbusplus::asio::object_server& objectServer,
std::vector<thresholds::Threshold>&& thresholds,
uint8_t busId, uint8_t mcuAddress, uint8_t tempReg);
- ~MCUTempSensor();
+ ~MCUTempSensor() override;
void checkThresholds(void) override;
void read(void);