1
0

Add formatting control files

This commit is contained in:
Hendrik Leppkes 2020-04-21 11:45:01 +02:00
parent d9a1629ac9
commit 35d621705d
3 changed files with 53 additions and 1 deletions

34
.clang-format Normal file
View File

@ -0,0 +1,34 @@
BasedOnStyle: Microsoft
IndentWidth: 4
UseTab: false
Language: Cpp
Standard: Cpp11
SortIncludes: false
AlignAfterOpenBracket: Align
AlignEscapedNewlines: Left
AlignOperands: true
AlignTrailingComments: true
# AllowShortBlocksOnASingleLine: Empty
AllowShortCaseLabelsOnASingleLine: true
AllowShortFunctionsOnASingleLine: InlineOnly
AllowShortIfStatementsOnASingleLine: Never
AllowShortLambdasOnASingleLine: All
AlwaysBreakAfterReturnType: None
BreakConstructorInitializers: BeforeComma
BreakInheritanceList: BeforeComma
Cpp11BracedListStyle: true
PointerAlignment: Right
SpaceBeforeAssignmentOperators: true
SpaceBeforeCtorInitializerColon: true
SpaceBeforeInheritanceColon: true
SpaceBeforeParens: ControlStatements
SpaceBeforeRangeBasedForLoopColon: true
# SpaceBeforeSquareBrackets: false
# SpaceInEmptyBlock: false
SpaceInEmptyParentheses: false
SpacesInAngles: false
SpacesInCStyleCastParentheses: false
# SpacesInConditionalStatement: false
SpacesInParentheses: false
SpacesInSquareBrackets: false

18
.editorconfig Normal file
View File

@ -0,0 +1,18 @@
root = true
[*]
end_of_line = CRLF
indent_style = space
indent_size = 4
insert_final_newline = true
trim_trailing_whitespace = true
[ffmpeg/**]
end_of_line = LF
indent_style = space
indent_size = 4
[libbluray/**]
end_of_line = LF
indent_style = space
indent_size = 4

2
ffmpeg

@ -1 +1 @@
Subproject commit 7129d7d9161e245fcc9c0a21a1744ec842cf35ba
Subproject commit 499db67cf301da8875b20839ac13072f865d1460