mirror of
https://github.com/FeralInteractive/gamemode.git
synced 2025-08-10 23:27:52 +02:00
Ensure we're more specific about clang format options and include order
This commit is contained in:
@@ -2,8 +2,7 @@
|
||||
AccessModifierOffset: 0
|
||||
AlignAfterOpenBracket: true
|
||||
AlignConsecutiveAssignments: false
|
||||
#uncomment for clang 3.9
|
||||
#AlignConsecutiveDeclarations: false
|
||||
AlignConsecutiveDeclarations: false
|
||||
AlignEscapedNewlinesLeft: false
|
||||
AlignOperands: true
|
||||
AlignTrailingComments: true
|
||||
@@ -14,21 +13,18 @@ AllowShortFunctionsOnASingleLine: None
|
||||
AllowShortIfStatementsOnASingleLine: false
|
||||
AllowShortLoopsOnASingleLine: false
|
||||
# AlwaysBreakAfterDefinitionReturnType: None
|
||||
#uncomment for clang 3.9
|
||||
#AlwaysBreakAfterReturnType: None
|
||||
AlwaysBreakAfterReturnType: None
|
||||
AlwaysBreakBeforeMultilineStrings: true
|
||||
AlwaysBreakTemplateDeclarations: false
|
||||
BinPackArguments: false
|
||||
BinPackParameters: true
|
||||
# BraceWrapping: (not set since BreakBeforeBraces is not Custom)
|
||||
BreakBeforeBinaryOperators: None
|
||||
# BreakAfterJavaFieldAnnotations: (not java)
|
||||
BreakBeforeBinaryOperators: None
|
||||
BreakBeforeBraces: Linux
|
||||
BreakBeforeTernaryOperators: true
|
||||
BreakConstructorInitializersBeforeComma: false
|
||||
#uncomment for clang 3.9
|
||||
#BreakStringLiterals: false
|
||||
# Too new for travis clang-format version
|
||||
# BreakStringLiterals: false
|
||||
ColumnLimit: 100
|
||||
CommentPragmas: '\*\<'
|
||||
ConstructorInitializerAllOnOneLineOrOnePerLine: false
|
||||
@@ -39,35 +35,37 @@ DerivePointerAlignment: false
|
||||
DisableFormat: false
|
||||
ExperimentalAutoDetectBinPacking: false
|
||||
ForEachMacros: [ ]
|
||||
#Uncomment for clang 3.9
|
||||
#IncludeCategories:
|
||||
# - Regex: '^"'
|
||||
# Priority: 1
|
||||
SortIncludes: true
|
||||
# IncludeBlocksStyle changed to IncludeBlocks, between xenial and disco, so we can't use it for consistency
|
||||
# IncludeBlocks: Regroup
|
||||
IncludeCategories:
|
||||
- Regex: '^"gamemode.h"'
|
||||
Priority: 0
|
||||
- Regex: '^"build-'
|
||||
Priority: 1
|
||||
- Regex: '^"common-'
|
||||
Priority: 2
|
||||
- Regex: '^"gamemode-'
|
||||
Priority: 3
|
||||
- Regex: '^<'
|
||||
Priority: 4
|
||||
# IncludeIsMainRegex: (project doesn't use a main includes that can add other includes via regex)
|
||||
IndentCaseLabels: false
|
||||
IndentWidth: 4
|
||||
IndentWrappedFunctionNames: false
|
||||
# JavaScriptQuotes: (not javascript)
|
||||
KeepEmptyLinesAtTheStartOfBlocks: false
|
||||
Language: Cpp
|
||||
MacroBlockBegin: ''
|
||||
MacroBlockEnd: ''
|
||||
MaxEmptyLinesToKeep: 1
|
||||
NamespaceIndentation: None
|
||||
# ObjCBlockIndentWidth: (not objc)
|
||||
# ObjCSpaceAfterProperty: (not objc)
|
||||
# ObjCSpaceBeforeProtocolList: (not objc)
|
||||
PenaltyBreakBeforeFirstCallParameter: 400
|
||||
PenaltyBreakComment: 0
|
||||
# PenaltyBreakFirstLessLess: (not cpp)
|
||||
PenaltyBreakString: 500
|
||||
PenaltyExcessCharacter: 10000
|
||||
PenaltyReturnTypeOnItsOwnLine: 600
|
||||
PointerAlignment: Right
|
||||
#uncomment for clang 3.9
|
||||
#ReflowComments: true
|
||||
#uncomment for clang 3.9
|
||||
#SortIncludes: true
|
||||
ReflowComments: true
|
||||
SpaceAfterCStyleCast: false
|
||||
SpaceBeforeAssignmentOperators: true
|
||||
SpaceBeforeParens: ControlStatements
|
||||
@@ -75,7 +73,6 @@ SpaceInEmptyParentheses: false
|
||||
SpacesBeforeTrailingComments: 1
|
||||
SpacesInAngles: false
|
||||
SpacesInCStyleCastParentheses: false
|
||||
# SpacesInContainerLiterals: (not objc or javascript)
|
||||
SpacesInParentheses: false
|
||||
SpacesInSquareBrackets: false
|
||||
Standard: Cpp11
|
||||
|
Reference in New Issue
Block a user