From f4af76e796a57e453f3717cfdf40c8bcf132b62e Mon Sep 17 00:00:00 2001 From: Moritz Pflanzer Date: Wed, 6 Sep 2017 07:42:43 +0100 Subject: COMPMID-417: Fix clang tidy after renaming Change-Id: I3e327bcbb4719c493c45397243354289c3223945 Reviewed-on: http://mpd-gerrit.cambridge.arm.com/86677 Reviewed-by: Anthony Barbier Tested-by: Kaizen --- scripts/check_clang-tidy.py | 5 +---- scripts/clang-tidy.sh | 8 ++++---- 2 files changed, 5 insertions(+), 8 deletions(-) (limited to 'scripts') diff --git a/scripts/check_clang-tidy.py b/scripts/check_clang-tidy.py index 30bfca133d..e95204610b 100755 --- a/scripts/check_clang-tidy.py +++ b/scripts/check_clang-tidy.py @@ -20,6 +20,7 @@ if __name__ == "__main__": if (("Utils.cpp" in line and "'arm_compute_version.embed' file not found" in line) or ("cl2.hpp" in line and "cast from pointer to smaller type 'cl_context_properties' (aka 'int') loses information" in line) or ("arm_fp16.h" in line) or + ("omp.h" in line) or ("memory" in line and "cast from pointer to smaller type 'uintptr_t' (aka 'unsigned int') loses information" in line) or ("NEMath.inl" in line and "statement expression not allowed at file scope" in line) or "3rdparty" in line): @@ -67,10 +68,6 @@ if __name__ == "__main__": "syscall" in lines[i + 1])): continue - if "use '= default' to define a trivial default constructor" in line: - if i + 1 < len(lines) and "BENCHMARK" in lines[i + 1]: - continue - failed = True print(line) diff --git a/scripts/clang-tidy.sh b/scripts/clang-tidy.sh index 6ba3bcad64..b9ae0cfe60 100755 --- a/scripts/clang-tidy.sh +++ b/scripts/clang-tidy.sh @@ -1,6 +1,6 @@ #!/usr/bin/env bash -DIRECTORIES="./arm_compute ./src ./examples ./tests ./utils ./framework ./support" +DIRECTORIES="./arm_compute ./src ./examples ./tests ./utils ./support" if [ $# -eq 0 ] then @@ -45,13 +45,13 @@ fi ARMV7_GCC_PATH=$(dirname $ARMV7_GCC)/.. AARCH64_GCC_PATH=$(dirname $AARCH64_GCC)/.. -INCLUDE_PATHS="-Iinclude -I. -I3rdparty/include -Ikernels -Itests -Icomputer_vision -Iframework" +INCLUDE_PATHS="-Iinclude -I. -I3rdparty/include -Ikernels -Icomputer_vision" function armv7 { USE_BOOST="" - if [[ "$1" == *tests/validation* ]] + if [[ "$1" == *tests/validation_old* ]] then USE_BOOST="-DBOOST" fi @@ -71,7 +71,7 @@ function aarch64 { USE_BOOST="" - if [[ "$1" == *tests/validation* ]] + if [[ "$1" == *tests/validation_old* ]] then USE_BOOST="-DBOOST" fi -- cgit v1.2.1