From c79edf4df9909bdb1313e74bb9cc7c8ea7936dcb Mon Sep 17 00:00:00 2001 From: David Robillard Date: Fri, 15 Nov 2024 08:53:26 -0500 Subject: Update clang-format configuration --- .clang-format | 25 +++++++++++++------------ 1 file changed, 13 insertions(+), 12 deletions(-) (limited to '.clang-format') diff --git a/.clang-format b/.clang-format index 6245b22..808c8b5 100644 --- a/.clang-format +++ b/.clang-format @@ -1,10 +1,21 @@ -# Copyright 2020-2022 David Robillard +# Copyright 2020-2024 David Robillard # SPDX-License-Identifier: 0BSD OR ISC --- AlignConsecutiveAssignments: true AlignConsecutiveDeclarations: true -AlignEscapedNewlinesLeft: true +AlignEscapedNewlines: Left +AttributeMacros: + - ZIX_ALWAYS_INLINE_FUNC + - ZIX_API + - ZIX_CONST_API + - ZIX_CONST_FUNC + - ZIX_MALLOC_API + - ZIX_MALLOC_FUNC + - ZIX_NODISCARD + - ZIX_PURE_API + - ZIX_PURE_FUNC + - ZIX_PURE_WIN_API BasedOnStyle: Mozilla BraceWrapping: AfterEnum: false @@ -20,17 +31,7 @@ KeepEmptyLinesAtTheStartOfBlocks: false SpacesInContainerLiterals: false StatementMacros: - FALLTHROUGH - - ZIX_ALWAYS_INLINE_FUNC - - ZIX_API - ZIX_BEGIN_DECLS - - ZIX_CONST_API - - ZIX_CONST_FUNC - ZIX_END_DECLS - - ZIX_MALLOC_API - - ZIX_MALLOC_FUNC - - ZIX_NODISCARD - - ZIX_PURE_API - - ZIX_PURE_FUNC - - ZIX_PURE_WIN_API - _Pragma ... -- cgit v1.2.1