summaryrefslogtreecommitdiffstats
path: root/.clang-format
diff options
context:
space:
mode:
authorDavid Robillard <d@drobilla.net>2024-11-15 08:53:26 -0500
committerDavid Robillard <d@drobilla.net>2024-11-15 08:53:26 -0500
commitc79edf4df9909bdb1313e74bb9cc7c8ea7936dcb (patch)
treea9a6642536eeb5860ae6c1eaaa74ba523385d7c8 /.clang-format
parent336aad280221ce643255032e948acccc27e7204f (diff)
downloadzix-c79edf4df9909bdb1313e74bb9cc7c8ea7936dcb.tar.gz
zix-c79edf4df9909bdb1313e74bb9cc7c8ea7936dcb.tar.bz2
zix-c79edf4df9909bdb1313e74bb9cc7c8ea7936dcb.zip
Update clang-format configuration
Diffstat (limited to '.clang-format')
-rw-r--r--.clang-format25
1 files changed, 13 insertions, 12 deletions
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 <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
@@ -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
...