---
Language: Cpp

BasedOnStyle: LLVM

#---------------------------------------------------------
# Basic indentation
#---------------------------------------------------------

IndentWidth: 4
TabWidth: 4
UseTab: Never

#---------------------------------------------------------
# Braces
#---------------------------------------------------------

BreakBeforeBraces: Allman

#---------------------------------------------------------
# Parentheses
#---------------------------------------------------------

SpaceBeforeParens: Custom
SpaceBeforeParensOptions:
  AfterControlStatements: false
  AfterFunctionDeclarationName: false
  AfterFunctionDefinitionName: false

SpacesInParens: Custom
SpacesInParensOptions:
  InConditionalStatements: true
  InCStyleCasts: false
  InEmptyParentheses: false
  Other: false

#---------------------------------------------------------
# Pointers and references
#---------------------------------------------------------

PointerAlignment: Left
ReferenceAlignment: Left
DerivePointerAlignment: false

#---------------------------------------------------------
# Line length
#---------------------------------------------------------

ColumnLimit: 0

#---------------------------------------------------------
# Control statements
#---------------------------------------------------------

AllowShortFunctionsOnASingleLine: Empty
AllowShortIfStatementsOnASingleLine: Never
AllowShortLoopsOnASingleLine: false

#---------------------------------------------------------
# Functions
#---------------------------------------------------------

AlwaysBreakAfterReturnType: None
AlwaysBreakAfterDefinitionReturnType: None

#---------------------------------------------------------
# Switch
#---------------------------------------------------------

IndentCaseLabels: true

#---------------------------------------------------------
# Spaces
#---------------------------------------------------------

SpaceBeforeAssignmentOperators: true
SpaceAfterCStyleCast: false

#---------------------------------------------------------
# Includes
#---------------------------------------------------------

SortIncludes: Never

#---------------------------------------------------------
# Comments
#---------------------------------------------------------

ReflowComments: false

