From 108233784827d54361c99c67eaee9e668010b3c3 Mon Sep 17 00:00:00 2001 From: Russ Allbery Date: Sun, 17 May 2020 20:21:59 -0700 Subject: Reformat all C code with clang-format-10 --- .clang-format | 29 +++++++++++++++++++++++++++++ 1 file changed, 29 insertions(+) create mode 100644 .clang-format (limited to '.clang-format') 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 . +# +# Copyright 2020 Russ Allbery +# +# 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 +--- -- cgit v1.2.3