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 <gunes.bayir@arm.com>
Reviewed-on: https://review.mlplatform.org/c/ml/ComputeLibrary/+/10140
Reviewed-by: Jakub Sujak <jakub.sujak@arm.com>
Reviewed-by: Gian Marco Iodice <gianmarco.iodice@arm.com>
Comments-Addressed: Arm Jenkins <bsgcomp@arm.com>
Benchmark: Arm Jenkins <bsgcomp@arm.com>
Tested-by: Arm Jenkins <bsgcomp@arm.com>
diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml
index c003d1c..9f3ae37 100644
--- a/.pre-commit-config.yaml
+++ b/.pre-commit-config.yaml
@@ -32,6 +32,18 @@
         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: