clang-tidy: Initial Commit
This commit introduces clang-tidy and modifies code to address
issues flagged by the checks. Additionally, it includes the
initial infrastructure setup.
Tested: Build and unit tests completed successfully.
Change-Id: I55f9f4a2a9a1b1cd2016773b47935484d6a57867
Signed-off-by: Jayanth Othayoth <ojayanth@gmail.com>
diff --git a/elog_watch.hpp b/elog_watch.hpp
index 7b8671f..24dbced 100644
--- a/elog_watch.hpp
+++ b/elog_watch.hpp
@@ -35,8 +35,8 @@
~Watch() = default;
Watch(const Watch&) = delete;
Watch& operator=(const Watch&) = delete;
- Watch(Watch&&) = default;
- Watch& operator=(Watch&&) = default;
+ Watch(Watch&&) = delete;
+ Watch& operator=(Watch&&) = delete;
/** @brief constructs watch for elog add and delete signals.
* @param[in] bus - The Dbus bus object
@@ -56,6 +56,7 @@
template <class Archive>
void serialize(Archive& a, const std::uint32_t version)
{
+ (void)version; // Mark version as unused to avoid warning
a(elogList);
// TODO: openbmc/phosphor-debug-collector#1