CppCheck: Suppress relative path of QCBOR
QCBOR source code is moved into build folder. Its path matched by
CppCheck is relative "lib/ext/qcbor-src".
Signed-off-by: Xinyu Zhang <xinyu.zhang@arm.com>
Change-Id: Ia8eb12d7f125c7f5050eec6a4cf4c54387f1574d
diff --git a/cppcheck/tfm-suppress-list.txt b/cppcheck/tfm-suppress-list.txt
index 44bc631..ca08f64 100644
--- a/cppcheck/tfm-suppress-list.txt
+++ b/cppcheck/tfm-suppress-list.txt
@@ -1,5 +1,5 @@
//-------------------------------------------------------------------------------
-// Copyright (c) 2018-2021, Arm Limited and Contributors. All rights reserved.
+// Copyright (c) 2018-2022, Arm Limited and Contributors. All rights reserved.
//
// SPDX-License-Identifier: BSD-3-Clause
//
@@ -43,14 +43,15 @@
missingInclude:*/tfm_core.h:11
missingInclude:*/tfm_secure_api.h:11
-//Exclude external qcbor code which does not comply with guidelines
-*:*/lib/*
+//Exclude external code which does not need to comply with guidelines
+*:*/lib/ext/*
*:*/docs/*
*:*/tools/*
*:*/bl2/ext/*
*:*/platform/ext/*
*:*/mcuboot/*
*:*/mbedtls/*
+*:lib/ext/qcbor-src/*
//cppcheck shouldn't complain about unused function.
unusedFunction