clang-tidy: Add cert checks
This update enhances code security by incorporating CERT guideline
checks using clang-tidy. These checks are designed to identify
potential security vulnerabilities and ensure compliance with
secure coding standards.
Tested: Build and unit tests passed successfully.
Change-Id: Ic292a71f89a23d17c8dfdb3b3398ae82d3bc78cb
Signed-off-by: Jayanth Othayoth <ojayanth@gmail.com>
diff --git a/.clang-tidy b/.clang-tidy
index 0dc7755..f7583ad 100644
--- a/.clang-tidy
+++ b/.clang-tidy
@@ -78,6 +78,38 @@
bugprone-unused-return-value,
bugprone-use-after-move,
bugprone-virtual-near-miss,
+cert-con36-c,
+cert-con54-cpp,
+cert-dcl03-c,
+cert-dcl16-c,
+cert-dcl21-cpp,
+cert-dcl37-c,
+cert-dcl50-cpp,
+cert-dcl51-cpp,
+cert-dcl54-cpp,
+cert-dcl58-cpp,
+cert-dcl59-cpp,
+cert-env33-c,
+cert-err09-cpp,
+cert-err34-c,
+cert-err52-cpp,
+cert-err60-cpp,
+cert-err61-cpp,
+cert-fio38-c,
+cert-flp30-c,
+cert-mem57-cpp,
+cert-msc30-c,
+cert-msc32-c,
+cert-msc50-cpp,
+cert-msc51-cpp,
+cert-oop11-cpp,
+cert-oop54-cpp,
+cert-oop57-cpp,
+cert-oop58-cpp,
+cert-pos44-c,
+cert-pos47-c,
+cert-sig30-c,
+cert-str34-c,
readability-identifier-naming'
WarningsAsErrors: '*'