summaryrefslogtreecommitdiff
path: root/.clang-format
diff options
context:
space:
mode:
authorArx Cruz <arxcruz@redhat.com>2017-04-07 13:50:47 +0200
committerArx Cruz <arxcruz@redhat.com>2017-04-07 13:52:26 +0200
commit8c5e60de83618a5b2a9344223cc56ee29eacf3a4 (patch)
treecdbb002315c34bc03003de51bcfa234018097649 /.clang-format
parent3b64d05e8a1aae1581d2bec7288d80ac4699e1b1 (diff)
downloadzenity-8c5e60de83618a5b2a9344223cc56ee29eacf3a4.tar.gz
Adding clang-format script
All the code in zenity from now, will follow this format style
Diffstat (limited to '.clang-format')
-rw-r--r--.clang-format34
1 files changed, 34 insertions, 0 deletions
diff --git a/.clang-format b/.clang-format
new file mode 100644
index 0000000..3ae33fc
--- /dev/null
+++ b/.clang-format
@@ -0,0 +1,34 @@
+---
+BasedOnStyle: GNU
+AlignAfterOpenBracket: DontAlign
+AlignConsecutiveAssignments: 'false'
+AlignConsecutiveDeclarations: 'false'
+AlignOperands: 'false'
+AlignTrailingComments: 'false'
+AllowAllParametersOfDeclarationOnNextLine: 'false'
+AllowShortBlocksOnASingleLine: 'false'
+AllowShortCaseLabelsOnASingleLine: 'false'
+AllowShortFunctionsOnASingleLine: 'None'
+AllowShortLoopsOnASingleLine: 'false'
+AllowShortIfStatementsOnASingleLine: 'false'
+BinPackArguments: 'false'
+BinPackParameters: 'true'
+BreakBeforeBinaryOperators: None
+BreakBeforeBraces: Attach
+BreakBeforeTernaryOperators: 'true'
+BreakConstructorInitializersBeforeComma: 'true'
+Cpp11BracedListStyle: true
+ColumnLimit: '80'
+ConstructorInitializerAllOnOneLineOrOnePerLine: 'true'
+IndentCaseLabels: 'true'
+Language: Cpp
+NamespaceIndentation: None
+PointerAlignment: Right
+SortIncludes: 'true'
+SpaceAfterCStyleCast: 'true'
+Standard: Cpp03
+IndentWidth: 4
+TabWidth: 4
+UseTab: Always
+...
+