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: Ia145f2c03f1a4b1f98c25f1d3a56de0ffab668c8
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: '*'