Add cppcheck configuration

Cppcheck is a FLOSS static analyzer. This patch add a configuration
file to capture project specific settings fot this tool.

Change-Id: I211f791e2edb0326935d1cfc5903b226850dbc6d
Signed-off-by: Gyorgy Szing <Gyorgy.Szing@arm.com>
diff --git a/.cppcheck b/.cppcheck
new file mode 100644
index 0000000..ab5af7d
--- /dev/null
+++ b/.cppcheck
@@ -0,0 +1,22 @@
+
+#-------------------------------------------------------------------------------
+# Copyright (c) 2021-2022, Arm Limited and Contributors. All rights reserved.
+#
+# SPDX-License-Identifier: BSD-3-Clause
+#
+#-------------------------------------------------------------------------------
+# cppcheck options to check the whole repo. This is a limited approach as
+# deployment specific settings can not be used (include paths, macro definitions
+# platform, etc...).
+# use this file as:
+#    cppcheck $(sed "s/#.*//g" ".cppcheck") .
+--enable=all --suppress=missingInclude -q --std=c99
+--platform=unix64
+# Output in checkpatch compatible format.
+--template={file}:{line}:{severity}:{id},{message}
+-I components/common/utils/include
+-I components/messaging/ffa/libsp/include
+-I components/rpc/common/interface
+-I components/service/locator/interface
+-I components/messaging/ffa/libsp/include
+-I components/common/utils/include