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/TachSensor.hpp b/include/TachSensor.hpp
index 1e5347f..1b80404 100644
--- a/include/TachSensor.hpp
+++ b/include/TachSensor.hpp
@@ -1,14 +1,13 @@
#pragma once
-#include "Thresholds.hpp"
-#include "sensor.hpp"
-
#include <systemd/sd-journal.h>
+#include <Thresholds.hpp>
#include <boost/asio/streambuf.hpp>
#include <boost/container/flat_map.hpp>
#include <boost/container/flat_set.hpp>
#include <gpiod.hpp>
#include <sdbusplus/asio/object_server.hpp>
+#include <sensor.hpp>
#include <memory>
#include <optional>
@@ -75,7 +74,7 @@
const std::pair<size_t, size_t>& limits,
const PowerState& powerState,
const std::optional<std::string>& led);
- ~TachSensor();
+ ~TachSensor() override;
private:
sdbusplus::asio::object_server& objServer;