mirror of
https://github.com/swift-project/pilotclient.git
synced 2026-03-22 06:45:37 +08:00
Added .astylerc file
This commit is contained in:
committed by
Klaus Basan
parent
cdea8cff95
commit
309e5c96cd
40
.astylerc
Normal file
40
.astylerc
Normal file
@@ -0,0 +1,40 @@
|
||||
# Open brace goes on same line as conditional or loop statement.
|
||||
# Open brace goes on its own line after function, class, or namespace statement.
|
||||
--style=allman
|
||||
|
||||
# Indent with 4 spaces.
|
||||
--indent=spaces=4
|
||||
|
||||
# Indent code after a case label, but do not indent the case label itself.
|
||||
--indent-cases
|
||||
|
||||
# Indent code inside namespace blocks.
|
||||
--indent-namespaces
|
||||
|
||||
# Outdent labels by one level of indentation.
|
||||
--indent-labels
|
||||
|
||||
# Indent preprocessor definitions where they span multiple lines with backslash.
|
||||
--indent-preprocessor
|
||||
|
||||
# Add an extra indentation where a conditional clause spans multiple lines.
|
||||
--min-conditional-indent=2
|
||||
|
||||
# Spaces around operators.
|
||||
--pad-oper
|
||||
|
||||
# Space after if keyword.
|
||||
--pad-header
|
||||
|
||||
# Remove unwanted spaces around parenthesis.
|
||||
--unpad-paren
|
||||
|
||||
# Allow some occasional exceptions to the rules.
|
||||
--keep-one-line-blocks
|
||||
--keep-one-line-statements
|
||||
|
||||
# Convert tabs to spaces.
|
||||
--convert-tabs
|
||||
|
||||
# In declarations, attach the * or & qualifier to the identifier, not the type.
|
||||
--align-pointer=name
|
||||
Reference in New Issue
Block a user