clang-tidy: Initial commit
Enabled minimum checks now for validating the clang-tidy feature.
Additionally:
- Disable all checks by default.
- Treat all warnings as errors.
- Apply checks to all files except subproject headers.
Tested: Verified build.
Change-Id: I9b67b18e8f64ef81d783d996b019359d4b66dcdd
Signed-off-by: Jayanth Othayoth <ojayanth@gmail.com>
diff --git a/.clang-tidy b/.clang-tidy
new file mode 100644
index 0000000..75d64dc
--- /dev/null
+++ b/.clang-tidy
@@ -0,0 +1,12 @@
+Checks: '
+-*,
+modernize-use-nullptr,
+'
+
+# Treat all warnings as errors
+WarningsAsErrors: '*'
+
+# Apply checks to all files
+HeaderFilterRegex: '(?!^subprojects).*'
+
+CheckOptions: []