-
Committer:
Colin Watson
-
Date:
2021-11-07 22:56:57 UTC
-
Revision ID:
git-v1:404276eb7a026ebd4a018e68c0c1acf1a9e56663
Introduce clang-format
This relieves me of the cognitive burden of having to think about
trivial formatting details (especially when reviewing code from others,
but also for myself). In most cases the reformatted code is equivalent
or superior in terms of my preferred style to what I wrote myself; there
was one exception (in pipeline_dump) where I disabled formatting.
* .clang-format: New file.
* .pre-commit-config.yaml: Add clang-format hook.
* lib/*, tests/*: Reformat using clang-format.