Enable cppcoreguidelines check on the repo
This commit adds cppcoreguidelines clang-tidy
checks and make necessary changes.
Change-Id: I402b82f96b7ff82e3ba6d84c9cc50435c1ead6d4
Signed-off-by: Pavithra Barithaya <pavithra.b@ibm.com>
diff --git a/test/TestBmcEpoch.cpp b/test/TestBmcEpoch.cpp
index 4d9c814..38cbbaf 100644
--- a/test/TestBmcEpoch.cpp
+++ b/test/TestBmcEpoch.cpp
@@ -18,7 +18,7 @@
public:
sdbusplus::bus_t bus;
Manager manager;
- sd_event* event;
+ sd_event* event = nullptr;
std::unique_ptr<BmcEpoch> bmcEpoch;
TestBmcEpoch() : bus(sdbusplus::bus::new_default()), manager(bus)