clang-tidy: Add cert checks
This check corresponds to the CERT C++ Coding Standard rule.
Signed-off-by: George Liu <liuxiwei@ieisystem.com>
Change-Id: Ie31974d318a7b11a0295455595d7c330676ef45a
diff --git a/.clang-tidy b/.clang-tidy
index e1143dd..5f31960 100644
--- a/.clang-tidy
+++ b/.clang-tidy
@@ -55,7 +55,39 @@
bugprone-unused-raii,
bugprone-unused-return-value,
bugprone-use-after-move,
-bugprone-virtual-near-miss'
+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'
WarningsAsErrors: '*'
HeaderFilterRegex: '.*.hpp'