]> git.proxmox.com Git - efi-boot-shim.git/commit - .clang-format
Add a .clang-format file.
authorPeter Jones <pjones@redhat.com>
Fri, 29 Jan 2021 19:01:28 +0000 (14:01 -0500)
committerPeter Jones <pmjones@gmail.com>
Fri, 29 Jan 2021 23:24:57 +0000 (18:24 -0500)
commit5e3d9cd9985d700a871e329cea90721532888adf
tree0fcaacb032710ef74a7ac72b38e68ac18854bab7
parent4b0a61dc9a952028c7b1ccc8914835d989ce661e
Add a .clang-format file.

There's clearly not enough conformance to a single coding style here.
To some extent that can't really change - I don't intend to adopt edk2's
style for the main codebase, but re-formatting the code we borrow from
edk2 would be insane.

This commit adds a .clang-format file, to be used on new files as such:

clang-format --style=file -i foo.c

It can also be used when new free-standing code is added to existing
files, using the clang-format --lines= option.

The starting style in this is pretty close to the Linux kernel style,
with a couple of minor modifications.

Signed-off-by: Peter Jones <pjones@redhat.com>
.clang-format [new file with mode: 0644]