aboutsummaryrefslogtreecommitdiff
path: root/.clang-format
diff options
context:
space:
mode:
authorCharles Cabergs <me@cacharle.xyz>2021-11-21 13:51:27 +0100
committerCharles Cabergs <me@cacharle.xyz>2021-11-21 13:51:27 +0100
commit5677c3b8503292b02a516441ef9328b002142717 (patch)
tree1a8488235b9b8d8179662a3e5b583c69a71810b7 /.clang-format
parenteeaf62eba40b81604c1208d4d74bdeebfccd6e15 (diff)
downloadbfc-5677c3b8503292b02a516441ef9328b002142717.tar.gz
bfc-5677c3b8503292b02a516441ef9328b002142717.tar.bz2
bfc-5677c3b8503292b02a516441ef9328b002142717.zip
Added assembler and linker in bfc.c instead of Makefile, Added options to choose output filename and if output is assembly or executable
Diffstat (limited to '.clang-format')
-rw-r--r--.clang-format69
1 files changed, 69 insertions, 0 deletions
diff --git a/.clang-format b/.clang-format
new file mode 100644
index 0000000..f8821e3
--- /dev/null
+++ b/.clang-format
@@ -0,0 +1,69 @@
+---
+# BasedOnStyle: LLVM
+---
+
+Language: Cpp
+
+# PPIndentWidth: 1 # clang-format 13 only
+
+IndentWidth: 4
+TabWidth: 4
+UseTab: Never
+
+ColumnLimit: 100
+
+DerivePointerAlignment: false
+PointerAlignment: Right
+
+AlignConsecutiveDeclarations: Consecutive
+AlignConsecutiveAssignments: None
+AlignConsecutiveBitFields: Consecutive
+# AlignArrayOfStructures: Left # clang-format 13 only
+AlignEscapedNewlines: Left
+AlignTrailingComments: true
+AlignAfterOpenBracket: Align
+
+AlwaysBreakAfterDefinitionReturnType: All
+AlwaysBreakAfterReturnType: All
+
+SpaceBeforeParens: ControlStatements
+
+AllowShortFunctionsOnASingleLine: None
+AllowShortBlocksOnASingleLine: Never
+AllowShortIfStatementsOnASingleLine: Never
+
+AllowAllArgumentsOnNextLine: true
+AllowAllParametersOfDeclarationOnNextLine: true
+
+AlwaysBreakBeforeMultilineStrings: false
+
+BinPackArguments: false
+BinPackParameters: false
+
+BreakBeforeBraces: Allman
+BreakBeforeTernaryOperators: true
+
+IncludeBlocks: Merge
+
+KeepEmptyLinesAtTheStartOfBlocks: false
+MaxEmptyLinesToKeep: 1
+
+PenaltyBreakBeforeFirstCallParameter: 1
+PenaltyBreakString: 1
+PenaltyExcessCharacter: 1000
+
+SpaceAfterCStyleCast: false
+SpaceBeforeAssignmentOperators: true
+SpaceBeforeSquareBrackets: false
+SpaceInEmptyParentheses: false
+SpacesInCStyleCastParentheses: false
+SpacesInParentheses: false
+SpacesBeforeTrailingComments: 2
+SpacesInSquareBrackets: false
+SpaceAroundPointerQualifiers: Default
+
+AlignOperands: Align
+
+Cpp11BracedListStyle: true
+
+# vim:ft=yaml