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.

Change-Id: I9bd9b65d4ad0174fae4d69e1953b155914adc71e
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: '*'