The initial source comes from sdcuike/issueBlog#4
https://github.com/PacktPublishing free to download books code by Packet
https://github.com/EbookFoundation/free-programming-books Very immense
https://github.com/PacktPublishing free to download books code by Packet
https://github.com/EbookFoundation/free-programming-books Very immense
| # 指定文件处理模式, C/C++模式, 其他选择还有cs, java (缺省值) | |
| --mode=c | |
| # java风格缩进 | |
| --style=java | |
| # 缩进采用4个空格 | |
| --indent=spaces=4 |
| # @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) |