Skip to content

Instantly share code, notes, and snippets.

@nmsobri
Last active July 22, 2020 06:50
Show Gist options
  • Save nmsobri/54ebd47e5e9040689a12020814ffaef9 to your computer and use it in GitHub Desktop.
Save nmsobri/54ebd47e5e9040689a12020814ffaef9 to your computer and use it in GitHub Desktop.
Language: Cpp
BasedOnStyle: LLVM
TabWidth: 4
UseTab: Never
IndentWidth: 4
SortIncludes: true
ReflowComments: true
IndentCaseLabels: true
IncludeBlocks: Merge
IncludeCategories:
# Headers in <> without extension.
- Regex: '<([A-Za-z0-9\/-_])+>'
Priority: 1
# Headers in <> with extension.
- Regex: '<([A-Za-z0-9.\/-_])+>'
Priority: 2
# Headers in "" with extension.
- Regex: '"([A-Za-z0-9.\/-_])+"'
Priority: 3
AlignTrailingComments: true
AllowAllParametersOfDeclarationOnNextLine: false
AllowShortFunctionsOnASingleLine: false
AllowShortIfStatementsOnASingleLine: false
AllowShortLoopsOnASingleLine: false
BreakBeforeBraces: Attach
AlwaysBreakTemplateDeclarations: true
AlwaysBreakAfterDefinitionReturnType: None
SpaceInEmptyParentheses: false
FixNamespaceComments: false
IndentPPDirectives: BeforeHash
IndentWrappedFunctionNames: true
KeepEmptyLinesAtTheStartOfBlocks: false
MaxEmptyLinesToKeep: 1
NamespaceIndentation: All
PointerAlignment: Left
SortUsingDeclarations: true
SpaceAfterCStyleCast: false
SpaceAfterLogicalNot: false
SpaceAfterTemplateKeyword: false
SpaceBeforeAssignmentOperators: true
SpaceBeforeCpp11BracedList: false
SpaceBeforeCtorInitializerColon: false
SpaceBeforeInheritanceColon: true
SpaceBeforeParens: ControlStatements
SpaceBeforeRangeBasedForLoopColon: true
SpaceInEmptyParentheses: false
SpacesBeforeTrailingComments: 4
SpacesInAngles: false
SpacesInCStyleCastParentheses: false
SpacesInContainerLiterals: false
SpacesInParentheses: false
SpacesInSquareBrackets: false
BreakBeforeTernaryOperators: false
ColumnLimit: 0
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment