Run clang-format and update copyright
- Also added run clang-format to pre-commit runs
Signed-off-by: Jerry Ge <jerry.ge@arm.com>
Change-Id: I4e59ac0afbaa30dce0773aa63d92a1a3b119e2f3
diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml
index b253ddd..4a6c9c7 100644
--- a/.pre-commit-config.yaml
+++ b/.pre-commit-config.yaml
@@ -1,4 +1,4 @@
-# Copyright (c) 2021-2022 Arm Limited.
+# Copyright (c) 2021-2023 Arm Limited.
# SPDX-License-Identifier: Apache-2.0
# See https://pre-commit.com for more information
@@ -28,3 +28,13 @@
entry: pytest -m "not postcommit"
types: [python]
pass_filenames: false
+
+- repo: local
+ hooks:
+ - id: clang-format
+ name: clang-format
+ exclude: build|third_party
+ language: system
+ entry: clang-format
+ types: ["c++"]
+ args: ["-i"]
\ No newline at end of file