diff options
author | Anthony Barbier <anthony.barbier@arm.com> | 2017-09-12 16:04:45 +0100 |
---|---|---|
committer | Anthony Barbier <anthony.barbier@arm.com> | 2018-11-02 16:35:24 +0000 |
commit | 3dfbdebcb9072a02a6aae59f0700333bd0dc18ec (patch) | |
tree | 0ad6f794894121558575da958576f98c53623fb1 /scripts/clang-tidy.sh | |
parent | 6a450486f215602580b4cc9db280d3c693092bbe (diff) | |
download | ComputeLibrary-3dfbdebcb9072a02a6aae59f0700333bd0dc18ec.tar.gz |
COMPMID-451 regroup clang-tidy scripts and port to python
Change-Id: I8a87ec5a7ab29a908d6a3f07d7ebf5619355a57a
Reviewed-on: http://mpd-gerrit.cambridge.arm.com/87407
Tested-by: Kaizen <jeremy.johnson+kaizengerrit@arm.com>
Reviewed-by: Moritz Pflanzer <moritz.pflanzer@arm.com>
Diffstat (limited to 'scripts/clang-tidy.sh')
-rwxr-xr-x | scripts/clang-tidy.sh | 93 |
1 files changed, 0 insertions, 93 deletions
diff --git a/scripts/clang-tidy.sh b/scripts/clang-tidy.sh deleted file mode 100755 index b9ae0cfe60..0000000000 --- a/scripts/clang-tidy.sh +++ /dev/null @@ -1,93 +0,0 @@ -#!/usr/bin/env bash - -DIRECTORIES="./arm_compute ./src ./examples ./tests ./utils ./support" - -if [ $# -eq 0 ] -then - files=$(find $DIRECTORIES -type f -name \*.cpp | sort) -else - files=$@ -fi - -SCRIPT_PATH=$(dirname $0) - -CLANG_TIDY=$(which clang-tidy) - -if [[ -z $CLANG_TIDY ]]; then - echo "clang-tidy not found!" - exit 1 -else - echo "Found clang-tidy:" $CLANG_TIDY -fi - -CLANG_TIDY_PATH=$(dirname $CLANG_TIDY)/.. - -ARMV7_GCC=$(which arm-linux-gnueabihf-g++) - -if [[ -z $ARMV7_GCC ]]; then - echo "arm-linux-gnueabihf-g++ not found!" - exit 1 -else - echo "Found arm-linux-gnueabihf-g++:" $ARMV7_GCC -fi - -ARMV7_GCC_PATH=$(dirname $ARMV7_GCC)/.. - -AARCH64_GCC=$(which aarch64-linux-gnu-g++) - -if [[ -z $AARCH64_GCC ]]; then - echo "aarch64-linux-gnu-g++ not found!" - exit 1 -else - echo "Found aarch64-linux-gnu-g++:" $AARCH64_GCC -fi - -ARMV7_GCC_PATH=$(dirname $ARMV7_GCC)/.. -AARCH64_GCC_PATH=$(dirname $AARCH64_GCC)/.. - -INCLUDE_PATHS="-Iinclude -I. -I3rdparty/include -Ikernels -Icomputer_vision" - -function armv7 -{ - USE_BOOST="" - - if [[ "$1" == *tests/validation_old* ]] - then - USE_BOOST="-DBOOST" - fi - - $CLANG_TIDY \ - "$1" \ - -- \ - -target armv7a-none-linux-gnueabihf \ - --gcc-toolchain=$ARMV7_GCC_PATH \ - -std=c++11 \ - $INCLUDE_PATHS \ - -DARM_COMPUTE_CPP_SCHEDULER=1 $USE_BOOST - #read -rsp $'Press enter to continue...\n' -} - -function aarch64 -{ - USE_BOOST="" - - if [[ "$1" == *tests/validation_old* ]] - then - USE_BOOST="-DBOOST" - fi - - $CLANG_TIDY \ - "$1" \ - -- \ - -target aarch64-none-linux-gnueabi \ - --gcc-toolchain=$AARCH64_GCC_PATH \ - -std=c++11 \ - -include $SCRIPT_PATH/clang-tidy.h \ - $INCLUDE_PATHS \ - -DARM_COMPUTE_CL -DARM_COMPUTE_ENABLE_FP16 -DARM_COMPUTE_CPP_SCHEDULER=1 $USE_BOOST -} - -for f in $files; do - #armv7 "$f" - aarch64 "$f" -done |