From 57f5d28dd387383442db652177ab28aef758bc26 Mon Sep 17 00:00:00 2001 From: Michalis Spyrou Date: Mon, 13 May 2019 15:51:05 +0100 Subject: COMPMID-2177: Fix clang-tidy warnings Change-Id: Ia5a3356dd818645cf7ce4ae97e611293e59b6c57 Signed-off-by: Michalis Spyrou Reviewed-on: https://review.mlplatform.org/c/1121 Reviewed-by: Michele Di Giorgio Comments-Addressed: Arm Jenkins Tested-by: Arm Jenkins --- scripts/clang_tidy_rules.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/scripts/clang_tidy_rules.py b/scripts/clang_tidy_rules.py index b674048c3c..4e6ede3efb 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 -- cgit v1.2.1