summaryrefslogtreecommitdiffstats
path: root/.clang-format
diff options
context:
space:
mode:
authorDavid Robillard <d@drobilla.net>2024-11-15 08:56:27 -0500
committerDavid Robillard <d@drobilla.net>2024-11-15 08:56:27 -0500
commit9b589c246c368a9da6bbeab3e693767ffe19e04e (patch)
tree5a55fbdbae85f6c61d10b86e5d5c88cd1b75f857 /.clang-format
parent18c968e208a38320cb22acd88df2b9093e1590d5 (diff)
downloadsratom-9b589c246c368a9da6bbeab3e693767ffe19e04e.tar.gz
sratom-9b589c246c368a9da6bbeab3e693767ffe19e04e.tar.bz2
sratom-9b589c246c368a9da6bbeab3e693767ffe19e04e.zip
Add clang-format configuration
Diffstat (limited to '.clang-format')
-rw-r--r--.clang-format37
1 files changed, 37 insertions, 0 deletions
diff --git a/.clang-format b/.clang-format
new file mode 100644
index 0000000..596e2ff
--- /dev/null
+++ b/.clang-format
@@ -0,0 +1,37 @@
+# Copyright 2020-2024 David Robillard <d@drobilla.net>
+# SPDX-License-Identifier: 0BSD OR ISC
+
+---
+AlignConsecutiveAssignments: true
+AlignConsecutiveDeclarations: true
+AlignEscapedNewlines: Left
+AttributeMacros:
+ - SRATOM_API
+ - SRATOM_LOG_FUNC
+BasedOnStyle: Mozilla
+BraceWrapping:
+ AfterClass: true
+ AfterEnum: false
+ AfterExternBlock: false
+ AfterFunction: true
+ AfterNamespace: false
+ AfterStruct: false
+ SplitEmptyFunction: false
+ SplitEmptyRecord: false
+BreakBeforeBraces: Custom
+Cpp11BracedListStyle: true
+FixNamespaceComments: true
+ForEachMacros:
+ - LV2_ATOM_OBJECT_BODY_FOREACH
+ - LV2_ATOM_OBJECT_FOREACH
+ - LV2_ATOM_SEQUENCE_BODY_FOREACH
+ - LV2_ATOM_SEQUENCE_FOREACH
+ - LV2_ATOM_TUPLE_BODY_FOREACH
+ - LV2_ATOM_TUPLE_FOREACH
+IndentCaseLabels: false
+IndentPPDirectives: AfterHash
+KeepEmptyLinesAtTheStartOfBlocks: false
+SpacesInContainerLiterals: false
+StatementMacros:
+ - _Pragma
+...