summaryrefslogtreecommitdiffstats
path: root/.clang-format
diff options
context:
space:
mode:
authorDaniel Baumann <daniel.baumann@progress-linux.org>2024-04-28 09:54:46 +0000
committerDaniel Baumann <daniel.baumann@progress-linux.org>2024-04-28 09:54:46 +0000
commitcd7b005519ade8ab6c97fcb21590b71b7d1be6e3 (patch)
treec611a8d0cd5e8f68f41b8c2d16ba580e0f40a38d /.clang-format
parentInitial commit. (diff)
downloadlibrtr-upstream.tar.xz
librtr-upstream.zip
Adding upstream version 0.8.0.upstream/0.8.0upstream
Signed-off-by: Daniel Baumann <daniel.baumann@progress-linux.org>
Diffstat (limited to '.clang-format')
-rw-r--r--.clang-format47
1 files changed, 47 insertions, 0 deletions
diff --git a/.clang-format b/.clang-format
new file mode 100644
index 0000000..95d3b73
--- /dev/null
+++ b/.clang-format
@@ -0,0 +1,47 @@
+---
+AlignAfterOpenBracket: true
+AlignEscapedNewlines: Left
+AlignTrailingComments: false
+AllowAllParametersOfDeclarationOnNextLine: false
+AllowShortFunctionsOnASingleLine: false
+AllowShortIfStatementsOnASingleLine: false
+AllowShortLoopsOnASingleLine: false
+AlwaysBreakBeforeMultilineStrings: false
+BasedOnStyle: LLVM
+BreakBeforeBinaryOperators: None
+BreakBeforeBraces: Linux
+BreakBeforeTernaryOperators: false
+BreakStringLiterals: false
+ColumnLimit: 120
+CommentPragmas: ^ cppcheck-supress
+ContinuationIndentWidth: 8
+IncludeBlocks: Regroup
+IncludeCategories:
+ - Regex: '"rtrlib/.+"'
+ Priority: 1
+ - Regex: '"third-party/.+"'
+ Priority: 2
+ - Regex: '.+_private.+'
+ Priority: 0
+ - Regex: '"[[:alnum:]_]+"'
+ Priority: 0
+ - Regex: '".+"'
+ Priority: 0
+ - Regex: '<.+>'
+ Priority: 3
+IncludeIsMainRegex: '(private)?$'
+IndentCaseLabels: false
+IndentWidth: 8
+KeepEmptyLinesAtTheStartOfBlocks: false
+Language: Cpp
+MaxEmptyLinesToKeep: 1
+PenaltyBreakAssignment: 10
+PenaltyBreakBeforeFirstCallParameter: 30
+PenaltyBreakComment: 10
+PenaltyBreakFirstLessLess: 0
+PenaltyBreakString: 10
+PenaltyExcessCharacter: 100
+ReflowComments: false
+SortIncludes: true
+SpaceAfterCStyleCast: false
+UseTab: Always