summaryrefslogtreecommitdiff
path: root/.clang-format
AgeCommit message (Collapse)Author
2021-02-25compiler.h: fix a typo and add some more function attribute macrosPeter Jones
This fixes the ifndef guard on NONNULL and __CONCAT3 and adds definitions for: - __CONCAT() for a##b with the intermediate tokenization step - ALLOCFUNC for __malloc__ - DEPRECATED for __deprecated__ - PURE for __pure__ - RETURNS_NONNULL for __nonnull__ Signed-off-by: Peter Jones <pjones@redhat.com>
2021-02-13Add some linked list primitives.Peter Jones
This adds basic linked list structures, initializers, and iterators. Signed-off-by: Peter Jones <pjones@redhat.com>
2021-01-29Add a .clang-format file.Peter Jones
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>