aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMichalis Spyrou <michalis.spyrou@arm.com>2019-05-13 13:21:28 +0100
committerMichalis Spyrou <michalis.spyrou@arm.com>2019-05-13 14:47:14 +0100
commitbf38cff0b8c4b217f39d418230f59f114bbd91a2 (patch)
treeb01a02c0980bfff5e4ccf45d204ac4866e4e6a8e
parentc9a689f934c6d995ca0988a5b05a2f557575c1ef (diff)
downloadComputeLibrary-bf38cff0b8c4b217f39d418230f59f114bbd91a2.tar.gz
COMPMID-2177 Fix clang warnings
Ignore GCBufferAllocator and RawTensor warnings. Change-Id: Idf78510fc61ce1602a357a2e5a1834c96bde05e5 Signed-off-by: Michalis Spyrou <michalis.spyrou@arm.com> Reviewed-on: https://review.mlplatform.org/c/1112 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.py3
1 files changed, 2 insertions, 1 deletions
diff --git a/scripts/clang_tidy_rules.py b/scripts/clang_tidy_rules.py
index cba226f5d..b674048c3 100755
--- a/scripts/clang_tidy_rules.py
+++ b/scripts/clang_tidy_rules.py
@@ -65,7 +65,6 @@ 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
(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
@@ -73,6 +72,8 @@ def filter_clang_tidy_lines( lines ):
("TensorAllocator.cpp" in line and "warning: pointer parameter 'ptr' can be pointer to const" in line) or
("TensorAllocator.cpp" in line and "warning: do not declare C-style arrays" in line) or
("RawTensor.cpp" in line and "warning: pointer parameter 'ptr' can be pointer to const" in line) or
+ ("RawTensor.cpp" in line and "warning: do not declare C-style arrays" in line) or
+ ("GCBufferAllocator.cpp" in line and "warning: initializing non-owner" in line) or
("NEMinMaxLocationKernel.cpp" in line and "move constructors should be marked noexcept" in line) or
("NEMinMaxLocationKernel.cpp" in line and "move assignment operators should be marked noexcept" in line) or
("CLMinMaxLocationKernel.cpp" in line and "Forming reference to null pointer" in line) or