aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMichalis Spyrou <michalis.spyrou@arm.com>2019-05-13 15:51:05 +0100
committerMichalis Spyrou <michalis.spyrou@arm.com>2019-05-13 17:41:48 +0100
commit57f5d28dd387383442db652177ab28aef758bc26 (patch)
tree03cccbaa2667141aeefea69ffb31636593ec78f7
parentbf38cff0b8c4b217f39d418230f59f114bbd91a2 (diff)
downloadComputeLibrary-57f5d28dd387383442db652177ab28aef758bc26.tar.gz
COMPMID-2177: Fix clang-tidy warnings
Change-Id: Ia5a3356dd818645cf7ce4ae97e611293e59b6c57 Signed-off-by: Michalis Spyrou <michalis.spyrou@arm.com> Reviewed-on: https://review.mlplatform.org/c/1121 Reviewed-by: Michele Di Giorgio <michele.digiorgio@arm.com> Comments-Addressed: Arm Jenkins <bsgcomp@arm.com> Tested-by: Arm Jenkins <bsgcomp@arm.com>
-rwxr-xr-xscripts/clang_tidy_rules.py2
1 files changed, 2 insertions, 0 deletions
diff --git a/scripts/clang_tidy_rules.py b/scripts/clang_tidy_rules.py
index b674048c3..4e6ede3ef 100755
--- a/scripts/clang_tidy_rules.py
+++ b/scripts/clang_tidy_rules.py
@@ -65,6 +65,8 @@ def filter_clang_tidy_lines( lines ):
elif "warning:" in line:
if ("uninitialized record type: '__ret'" in line or
"local variable '__bound_functor' is still referred to by the global variable '__once_callable'" in line or
+ "assigning newly created 'gsl::owner<>'" in line or
+ "deleting a pointer through a type that is not marked 'gsl::owner<>'" in line or
(any(f in line for f in ["Error.cpp","Error.h"]) and "thrown exception type is not nothrow copy constructible" in line) or
(any(f in line for f in ["Error.cpp","Error.h"]) and "uninitialized record type: 'args'" in line) or
(any(f in line for f in ["Error.cpp","Error.h"]) and "do not call c-style vararg functions" in line) or