osquery-1/.clang-format

67 lines
2.0 KiB
Plaintext
Raw Normal View History

2014-08-15 07:25:30 +00:00
---
Language: Cpp
# BasedOnStyle: Google
2014-08-15 07:25:30 +00:00
AccessModifierOffset: -1
AlignAfterOpenBracket: true
# AlignConsecutiveAssignments: false
AlignEscapedNewlinesLeft: false
AlignOperands: true
AlignTrailingComments: false # differs
AllowShortBlocksOnASingleLine: false
2014-08-15 07:25:30 +00:00
AllowAllParametersOfDeclarationOnNextLine: true
AllowShortCaseLabelsOnASingleLine: false
AllowShortIfStatementsOnASingleLine: false # differs
AllowShortLoopsOnASingleLine: false # differs
AllowShortFunctionsOnASingleLine: Empty
AlwaysBreakAfterDefinitionReturnType: false
2014-08-15 07:25:30 +00:00
AlwaysBreakTemplateDeclarations: true
AlwaysBreakBeforeMultilineStrings: true
BreakBeforeBinaryOperators: false # differs
BreakBeforeBraces: Attach
BreakBeforeTernaryOperators: true
2014-08-15 07:25:30 +00:00
BreakConstructorInitializersBeforeComma: false
BinPackParameters: false
BinPackArguments: false
2014-08-15 19:41:47 +00:00
ColumnLimit: 80
ConstructorInitializerIndentWidth: 4
2014-08-15 07:25:30 +00:00
ConstructorInitializerAllOnOneLineOrOnePerLine: true
DerivePointerAlignment: false
2014-08-15 07:25:30 +00:00
DerivePointerBinding: true
IndentCaseLabels: false #differs
IndentWrappedFunctionNames: false
IndentFunctionDeclarationAfterType: false
2014-08-15 07:25:30 +00:00
MaxEmptyLinesToKeep: 1
KeepEmptyLinesAtTheStartOfBlocks: false
2014-08-15 07:25:30 +00:00
NamespaceIndentation: None
ObjCBlockIndentWidth: 2
ObjCSpaceAfterProperty: false
2014-08-15 07:25:30 +00:00
ObjCSpaceBeforeProtocolList: false
PenaltyBreakBeforeFirstCallParameter: 1
PenaltyBreakComment: 300
2014-08-15 07:25:30 +00:00
PenaltyBreakString: 1000
PenaltyBreakFirstLessLess: 120
2014-08-15 07:25:30 +00:00
PenaltyExcessCharacter: 1000000
PenaltyReturnTypeOnItsOwnLine: 200
PointerAlignment: Left
2014-08-15 07:25:30 +00:00
PointerBindsToType: true
SpacesBeforeTrailingComments: 1 #differs
2014-08-15 07:25:30 +00:00
Cpp11BracedListStyle: true
Standard: Cpp11
2014-08-15 19:41:47 +00:00
IndentWidth: 2
TabWidth: 8
UseTab: Never
SpaceAfterControlStatementKeyword: true
SpaceAfterCStyleCast: false
2014-08-15 07:25:30 +00:00
SpaceBeforeAssignmentOperators: true
SpaceBeforeParens: ControlStatements
SpaceInEmptyParentheses: false
SpacesInAngles: false
SpacesInContainerLiterals: true
SpacesInCStyleCastParentheses: false
SpacesInParentheses: false
SpacesInSquareBrackets: false
ContinuationIndentWidth: 4
CommentPragmas: '^ IWYU pragma:'
ForEachMacros: [ foreach, Q_FOREACH, BOOST_FOREACH ]
2014-08-15 07:25:30 +00:00
...