Add astyle parameters from lgnq
git-svn-id: https://rt-thread.googlecode.com/svn/trunk@2178 bbd45198-f89e-11dd-88c7-29a3b14d5316
This commit is contained in:
parent
70e39ffa54
commit
4bb93de55f
|
@ -207,3 +207,16 @@ rt_timer + 动词短语的形式表示能够应用于 timer 对象的方法。
|
||||||
|
|
||||||
在创建一个新的对象时,应该思考好,对象的内存操作处理:是否允许一个静态对象存在
|
在创建一个新的对象时,应该思考好,对象的内存操作处理:是否允许一个静态对象存在
|
||||||
,或仅仅支持从堆中动态分配的对象。
|
,或仅仅支持从堆中动态分配的对象。
|
||||||
|
|
||||||
|
14. 用 astyle 自动格式化代码
|
||||||
|
参数:--style=allman
|
||||||
|
--indent=spaces=4
|
||||||
|
--pad-oper
|
||||||
|
--pad-header
|
||||||
|
--unpad-paren
|
||||||
|
--suffix=none
|
||||||
|
--align-pointer=name
|
||||||
|
--lineend=linux
|
||||||
|
--convert-tabs
|
||||||
|
--verbose
|
||||||
|
|
||||||
|
|
|
@ -216,3 +216,16 @@ rt_timer + verb phrase stands for the method that could be used on timer object.
|
||||||
|
|
||||||
When creating a new object, think twice on memory allocations: whether a static
|
When creating a new object, think twice on memory allocations: whether a static
|
||||||
object could be created or it could only created dynamically on heap.
|
object could be created or it could only created dynamically on heap.
|
||||||
|
|
||||||
|
14. Use astyle to format the code automatically
|
||||||
|
parameters: --style=allman
|
||||||
|
--indent=spaces=4
|
||||||
|
--pad-oper
|
||||||
|
--pad-header
|
||||||
|
--unpad-paren
|
||||||
|
--suffix=none
|
||||||
|
--align-pointer=name
|
||||||
|
--lineend=linux
|
||||||
|
--convert-tabs
|
||||||
|
--verbose
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue