summaryrefslogtreecommitdiffstats
path: root/.clang-format
diff options
context:
space:
mode:
Diffstat (limited to '.clang-format')
-rw-r--r--.clang-format24
1 files changed, 14 insertions, 10 deletions
diff --git a/.clang-format b/.clang-format
index e8e993c..808c8b5 100644
--- a/.clang-format
+++ b/.clang-format
@@ -1,10 +1,21 @@
-# Copyright 2020-2022 David Robillard <d@drobilla.net>
+# Copyright 2020-2024 David Robillard <d@drobilla.net>
# 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
@@ -19,15 +30,8 @@ IndentPPDirectives: AfterHash
KeepEmptyLinesAtTheStartOfBlocks: false
SpacesInContainerLiterals: false
StatementMacros:
- - ZIX_API
+ - FALLTHROUGH
- ZIX_BEGIN_DECLS
- - ZIX_CONST_API
- - ZIX_CONST_API
- ZIX_END_DECLS
- - ZIX_MALLOC_API
- - ZIX_PURE_API
- - ZIX_PURE_WIN_API
- - ZIX_THREAD_FUNC
- - ZIX_UNUSED
- _Pragma
...