From bf38cff0b8c4b217f39d418230f59f114bbd91a2 Mon Sep 17 00:00:00 2001 From: Michalis Spyrou Date: Mon, 13 May 2019 13:21:28 +0100 Subject: COMPMID-2177 Fix clang warnings Ignore GCBufferAllocator and RawTensor warnings. Change-Id: Idf78510fc61ce1602a357a2e5a1834c96bde05e5 Signed-off-by: Michalis Spyrou Reviewed-on: https://review.mlplatform.org/c/1112 Reviewed-by: Michele Di Giorgio Comments-Addressed: Arm Jenkins Tested-by: Arm Jenkins --- scripts/clang_tidy_rules.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/scripts/clang_tidy_rules.py b/scripts/clang_tidy_rules.py index cba226f5d7..b674048c3c 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 -- cgit v1.2.1