Skip to content

Instantly share code, notes, and snippets.

@soufundragon
soufundragon / astyle.cfg
Created April 3, 2019 14:20 — forked from Akagi201/astyle.cfg
config file for astyle
# 指定文件处理模式, C/C++模式, 其他选择还有cs, java (缺省值)
--mode=c
# java风格缩进
--style=java
# 缩进采用4个空格
--indent=spaces=4
@soufundragon
soufundragon / astylerc
Created April 2, 2019 01:46 — forked from derofim/astylerc
Astyle code automatic formatting settings
# @file Astyle code automatic formatting settings
# @see http://astyle.sourceforge.net/astyle.html#_General_Information
#
# "One True Brace Style" uses linux brackets and adds brackets to unbracketed one line conditional statements.
# Opening brackets are broken from namespaces, classes, and function definitions.
# Brackets are attached to everything else including statements within a function, arrays, structs, and enums.
# In the following example brackets have been added to the "return 0;" statement. The option ??add?one?line?brackets can also be used with this style.
#
# int Foo(bool isBar)