added clang-format

This commit is contained in:
Turanszki Janos
2020-11-04 12:20:51 +01:00
parent 5c1a0efc47
commit ec796bbdb3
2 changed files with 69 additions and 0 deletions
+66
View File
@@ -0,0 +1,66 @@
# The style used for all options not specifically set in the configuration.
BreakBeforeBraces: Allman
# The extra indent or outdent of access modifiers, e.g. public:.
AccessModifierOffset: -4
# The column limit. A column limit of 0 means that there is no column limit.
ColumnLimit: 0
# The way to use tab characters in the resulting file. Possible values: Never, ForIndentation, Always.
UseTab: Never
# The number of columns to use for indentation.
IndentWidth: 4
# The indentation used for namespaces. Possible values: None, Inner, All.
NamespaceIndentation: All
# If true, always break after the template<...> of a template declaration.
AlwaysBreakTemplateDeclarations: false
BreakConstructorInitializersBeforeComma: true
ConstructorInitializerAllOnOneLineOrOnePerLine: true
# Allows contracting simple braced statements to a single line.
AllowShortBlocksOnASingleLine: false
# Dependent on the value, int f() { return 0; } can be put on a single line. Possible values: None, Inline, All.
AllowShortFunctionsOnASingleLine: None
# If true, if (a) return; can be put on a single line.
AllowShortIfStatementsOnASingleLine: false
# If true, while (true) continue; can be put on a single line.
AllowShortLoopsOnASingleLine: false
# Pointer and reference alignment style. Possible values: Left, Right, Middle.
PointerAlignment: Left
# If true, aligns escaped newlines as far left as possible. Otherwise puts them into the right-most column.
AlignEscapedNewlinesLeft: true
# If true, aligns trailing comments.
AlignTrailingComments: false
# If true, a space may be inserted after C style casts.
SpaceAfterCStyleCast: true
SpaceAfterTemplateKeyword: true
SpaceBeforeAssignmentOperators: true
SpaceBeforeCtorInitializerColon: true
SpaceBeforeInheritanceColon: true
SpaceBeforeParens: ControlStatements
SpaceBeforeRangeBasedForLoopColon: true
FixNamespaceComments: false
# A vector of macros that should be interpreted as foreach loops instead of as function calls.
ForEachMacros: ['foreach', 'Q_FOREACH', 'BOOST_FOREACH']
IncludeBlocks: Preserve
IncludeIsMainRegex: '(Test)?$'
# Indent case labels one level from the switch statement.
# When false, use the same indentation level as for the switch statement.
# Switch statement body is always indented one level more than case labels.
IndentCaseLabels: true
IndentPPDirectives: AfterHash
+3
View File
@@ -35,6 +35,9 @@ Project("{8BC9CEB8-8B4A-11D0-8D11-00A0C91BC942}") = "Shaders_HLSL6", "WickedEngi
EndProject
Project("{2150E333-8FDC-42A3-9474-1A3956D46DE8}") = "Supplementary", "Supplementary", "{BF8FCAB8-D7D3-4DAE-92DE-4B5037E9A0ED}"
ProjectSection(SolutionItems) = preProject
.clang-format = .clang-format
.gitattributes = .gitattributes
.gitignore = .gitignore
appveyor.yml = appveyor.yml
.github\workflows\build-nightly.yml = .github\workflows\build-nightly.yml
.github\workflows\build-pr.yml = .github\workflows\build-pr.yml