From 9c9c8dafe8f9a32bd70aee268cd537b93865a3ba Mon Sep 17 00:00:00 2001 From: Jerry Ge Date: Wed, 19 Jul 2023 23:08:16 +0000 Subject: Run clang-format and update copyright - Also added run clang-format to pre-commit runs Signed-off-by: Jerry Ge Change-Id: I4e59ac0afbaa30dce0773aa63d92a1a3b119e2f3 --- .pre-commit-config.yaml | 12 +++++++++++- 1 file changed, 11 insertions(+), 1 deletion(-) (limited to '.pre-commit-config.yaml') 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 @@ repos: 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 -- cgit v1.2.1