Run clang-format
This commit is contained in:
parent
372b482212
commit
d149cbe6a5
12 changed files with 974 additions and 132 deletions
16
README.md
16
README.md
|
@ -89,4 +89,20 @@ Full example (run as root):
|
|||
|
||||
```bash
|
||||
/usr/src/kernels/$(uname -r)/scripts/sign-file sha256 /etc/pki/akmods/private/private_key.priv /etc/pki/akmods/certs/public_key.der <module_file>.ko
|
||||
```
|
||||
|
||||
### Format
|
||||
|
||||
1. .clang-format
|
||||
|
||||
How update .clang-format
|
||||
|
||||
```bash
|
||||
curl https://raw.githubusercontent.com/torvalds/linux/refs/heads/master/.clang-format -o .clang-format
|
||||
```
|
||||
|
||||
Format files
|
||||
|
||||
```bash
|
||||
clang-format -i **/*.c
|
||||
```
|
Loading…
Add table
Add a link
Reference in a new issue