From ead57c231bc8835506ccd44b9d61baf0897bc9e5 Mon Sep 17 00:00:00 2001 From: Gunes Bayir Date: Fri, 11 Aug 2023 21:46:23 +0100 Subject: Add header guard check script in Acl Add a python script to check and fix header guards. It also enables this check in pre-commit. Change-Id: I4cad8ae5e88478eb6f1307a12a8be34dfed4b1ec Signed-off-by: Gunes Bayir Reviewed-on: https://review.mlplatform.org/c/ml/ComputeLibrary/+/10140 Reviewed-by: Jakub Sujak Reviewed-by: Gian Marco Iodice Comments-Addressed: Arm Jenkins Benchmark: Arm Jenkins Tested-by: Arm Jenkins --- .pre-commit-config.yaml | 12 ++++++++++++ 1 file changed, 12 insertions(+) (limited to '.pre-commit-config.yaml') diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml index c003d1cc94..9f3ae3709a 100644 --- a/.pre-commit-config.yaml +++ b/.pre-commit-config.yaml @@ -32,6 +32,18 @@ repos: language: python entry: python ./scripts/generate_build_files.py --bazel pass_filenames: false + - id: fix-header-guards-ckw + name: Fix header guards in CKW + stages: [commit] + language: python + entry: python ./scripts/check_header_guards.py --extensions=h,hpp,inl --comment_style=double_slash --prefix=CKW --include=compute_kernel_writer/ --add_extension --drop_outermost_subdir + pass_filenames: true + - id: fix-header-guards-acl + name: Fix header guards in ACL + stages: [commit] + language: python + entry: python ./scripts/check_header_guards.py --extensions=h,hpp,inl --comment_style=double_slash --prefix=ACL --exclude=compute_kernel_writer/,src/core/NEON/kernels/convolution/,src/core/NEON/kernels/arm_gemm/,src/core/NEON/kernels/arm_conv/,include/ --add_extension + pass_filenames: true - repo: https://github.com/pre-commit/pre-commit-hooks rev: v4.4.0 hooks: -- cgit v1.2.1