clang-tidy: Enable modernize-deprecated-headers check
Some headers from C library were deprecated in C++ and are no longer
welcome in C++ codebases.
This check replaces C standard library headers with their C++
alternatives and removes redundant ones.
The commit removes the header file as I don't see any usage of
it the code.
Change-Id: Idb119ca3bdfa183713087b10e1dd2b524718abcb
Signed-off-by: Pavithra Barithaya <pavithrabarithaya07@gmail.com>
diff --git a/.clang-tidy b/.clang-tidy
index be450e4..f6fc15c 100644
--- a/.clang-tidy
+++ b/.clang-tidy
@@ -204,6 +204,7 @@
misc-uniqueptr-reset-release,
misc-unused-using-decls,
modernize-avoid-bind,
+modernize-deprecated-headers,
modernize-deprecated-ios-base-aliases,
modernize-loop-convert,
modernize-make-shared,
diff --git a/host_state_manager.cpp b/host_state_manager.cpp
index 365ed84..388ac64 100644
--- a/host_state_manager.cpp
+++ b/host_state_manager.cpp
@@ -5,7 +5,6 @@
#include "host_check.hpp"
#include "utils.hpp"
-#include <stdio.h>
#include <systemd/sd-bus.h>
#include <cereal/archives/json.hpp>