diff options
author | David Robillard <d@drobilla.net> | 2024-11-15 08:56:00 -0500 |
---|---|---|
committer | David Robillard <d@drobilla.net> | 2024-11-15 08:56:00 -0500 |
commit | 15034f84a219344a7316895cccb371d34cb50d6e (patch) | |
tree | 47d2b05b42c0e41135350d756edb1f7e0f28e71e /.clang-format | |
parent | a6bb43656b4a891c93a70772f00774579885286c (diff) | |
download | lilv-15034f84a219344a7316895cccb371d34cb50d6e.tar.gz lilv-15034f84a219344a7316895cccb371d34cb50d6e.tar.bz2 lilv-15034f84a219344a7316895cccb371d34cb50d6e.zip |
Add clang-format configuration
Diffstat (limited to '.clang-format')
-rw-r--r-- | .clang-format | 56 |
1 files changed, 56 insertions, 0 deletions
diff --git a/.clang-format b/.clang-format new file mode 100644 index 0000000..1210a39 --- /dev/null +++ b/.clang-format @@ -0,0 +1,56 @@ +# Copyright 2020-2024 David Robillard <d@drobilla.net> +# SPDX-License-Identifier: 0BSD OR ISC + +--- +AlignConsecutiveAssignments: true +AlignConsecutiveDeclarations: true +AlignEscapedNewlines: Left +AttributeMacros: + - LILV_API + - LILV_DEPRECATED + - LILV_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: + - FOREACH_MATCH + - LILV_FOREACH + - 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: + - LILV_ERROR + - LILV_ERRORF + - LILV_NOTE + - LILV_NOTEF + - LILV_PORT_WRAP0 + - LILV_PORT_WRAP1 + - LILV_WARN + - LILV_WARNF + - LILV_WRAP0 + - LILV_WRAP0_VOID + - LILV_WRAP1 + - LILV_WRAP1_VOID + - LILV_WRAP2 + - LILV_WRAP2_VOID + - LILV_WRAP3 + - LILV_WRAP_CONVERSION + - _Pragma +... |