feat: add clang-format hook

Signed-off-by: Matej Focko <mfocko@redhat.com>
This commit is contained in:
Matej Focko 2024-02-21 23:33:42 +01:00
parent ee5c737b7f
commit 129c6c2bad
Signed by: mfocko
GPG key ID: 7C47D46246790496

View file

@ -1,6 +1,19 @@
# C++
- id: clang-format
name: clang-format
description: Format C/C++ sources with clang-format.
entry: clang-format -i
language: system
types:
- c
- c++
args:
- "-style=file"
# Rust
- id: rust-fmt - id: rust-fmt
name: rustfmt name: rustfmt
description: Format Rust sources with the rustfmt. description: Format Rust sources with rustfmt.
entry: rustfmt entry: rustfmt
language: system language: system
types: types: