diff options
author | Russ Allbery <eagle@eyrie.org> | 2020-05-17 20:21:59 -0700 |
---|---|---|
committer | Russ Allbery <eagle@eyrie.org> | 2020-05-17 20:21:59 -0700 |
commit | 108233784827d54361c99c67eaee9e668010b3c3 (patch) | |
tree | 329ad2e791fb27ecc037259c16b922be03e977d0 /.clang-format | |
parent | 201ac5003d4fba8b15dbb64628782970bd3422fd (diff) |
Reformat all C code with clang-format-10
Diffstat (limited to '.clang-format')
-rw-r--r-- | .clang-format | 29 |
1 files changed, 29 insertions, 0 deletions
diff --git a/.clang-format b/.clang-format new file mode 100644 index 0000000..993594c --- /dev/null +++ b/.clang-format @@ -0,0 +1,29 @@ +# Configuration for clang-format automated reformatting. -*- yaml -*- +# +# The canonical version of this file is maintained in the rra-c-util package, +# which can be found at <https://www.eyrie.org/~eagle/software/rra-c-util/>. +# +# Copyright 2020 Russ Allbery <eagle@eyrie.org> +# +# Copying and distribution of this file, with or without modification, are +# permitted in any medium without royalty provided the copyright notice +# and this notice are preserved. This file is offered as-is, without any +# warranty. +# +# SPDX-License-Identifier: FSFAP + +--- +Language: Cpp +BasedOnStyle: LLVM +AlignConsecutiveMacros: true +AlignEscapedNewlines: Left +AlwaysBreakAfterReturnType: AllDefinitions +BreakBeforeBinaryOperators: NonAssignment +BreakBeforeBraces: WebKit +ColumnLimit: 79 +IndentPPDirectives: AfterHash +IndentWidth: 4 +IndentWrappedFunctionNames: false +MaxEmptyLinesToKeep: 2 +SpaceAfterCStyleCast: true +--- |