aboutsummaryrefslogtreecommitdiff
path: root/scripts
diff options
context:
space:
mode:
authorMoritz Pflanzer <moritz.pflanzer@arm.com>2017-09-06 07:42:43 +0100
committerAnthony Barbier <anthony.barbier@arm.com>2018-11-02 16:35:24 +0000
commitf4af76e796a57e453f3717cfdf40c8bcf132b62e (patch)
treed59908813c669bce871d2bc22fe08d97766be097 /scripts
parent70f8291a9f2dce249e81c04fcf490c300bf0bc22 (diff)
downloadComputeLibrary-f4af76e796a57e453f3717cfdf40c8bcf132b62e.tar.gz
COMPMID-417: Fix clang tidy after renaming
Change-Id: I3e327bcbb4719c493c45397243354289c3223945 Reviewed-on: http://mpd-gerrit.cambridge.arm.com/86677 Reviewed-by: Anthony Barbier <anthony.barbier@arm.com> Tested-by: Kaizen <jeremy.johnson+kaizengerrit@arm.com>
Diffstat (limited to 'scripts')
-rwxr-xr-xscripts/check_clang-tidy.py5
-rwxr-xr-xscripts/clang-tidy.sh8
2 files changed, 5 insertions, 8 deletions
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