clang-tidy: Initial Commit

Added initial .clang-tidy configuration file with recommended C++ checks
aligned with the OpenBMC-approved checklist. This setup enforces modern
C++ best practices and helps catch common issues early in development.

Tested: Verified build.

Change-Id: I216ab8d142e0d6fa069244c2c3f885dff7c028e3
Signed-off-by: Jayanth Othayoth <ojayanth@gmail.com>
diff --git a/.clang-tidy b/.clang-tidy
new file mode 100644
index 0000000..7c0c50d
--- /dev/null
+++ b/.clang-tidy
@@ -0,0 +1,10 @@
+Checks: '-*,
+    bugprone-unchecked-optional-access,
+    modernize-use-nullptr
+    '
+
+CheckOptions: []
+
+HeaderFilterRegex: (?!^subprojects).*
+
+WarningsAsErrors: '*'