Skip to content

Instantly share code, notes, and snippets.

@Istom1n
Created August 10, 2018 14:13
Show Gist options
  • Save Istom1n/6d686ace1a691226ed8a4b39ee63cdbb to your computer and use it in GitHub Desktop.
Save Istom1n/6d686ace1a691226ed8a4b39ee63cdbb to your computer and use it in GitHub Desktop.
Istom1n's config for Artistic Style
# Google style uses attached braces and indented class access modifiers.
-A14
# Convert tabs
-c
# 4 space indent
-s4
# Indent 'class' and 'struct' access modifiers, 'public:', 'protected:' and 'private:', one half indent.
-xG
# Indent 'switch' blocks so that the 'case X:' statements are indented in the switch block. The entire case block is indented.
-S
# Don't retain a backup of the original file. The original file is purged after it is formatted.
#-n
# Don't break one-line blocks.
-O
# Don't break complex statements and multiple statements residing on a single line.
-o
# Attach a pointer or reference operator (*, &, or ^) to the variable name (right).
-k3
# Insert space padding after paren headers only (e.g. 'if', 'for', 'while'...).
-H
# Insert space padding around operators.
-p
# Indent C++ comments beginning in column one.
-Y
# Aka. monospaced default width of the terminal
-xC72
-xL
# Attach a pointer or reference operator (*, &, or ^) to either the variable type/name
-k3
@Istom1n
Copy link
Author

Istom1n commented Aug 10, 2018

Before

before-squashed

After

after-squashed

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment