1 Star 0 Fork 1

GaussianPrince / mini-arm-os

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
克隆/下载
coding-style.txt 1.07 KB
一键复制 编辑 原始数据 按行查看 历史
Jim Huang 提交于 2015-02-11 15:27 . add author and coding style information
The source code of mini-arm-os follows Linux style formatting/indenting.
You can use `astyle' to indent the source files:
astyle --style=linux --indent=tab -p -U -K -H --suffix=none
Brackets are broken from namespace, class, and function definitions.
Brackets are attached to statements within a function. Minimum conditional
indent is one-half indent. It frequently is used with an indent of 8 spaces.
Use tabs for indentation, and spaces for continuation line alignment. This
ensures that the code is displayed correctly regardless of the viewer’s tab
size.
Insert space padding around operators. Any end of line comments will remain in
the original column, if possible.
Remove extra space padding around parenthesis on the inside and outside. Any
end of line comments will remain in the original column, if possible.
Indent 'case X:' blocks from the 'case X:' headers. Case statements not
enclosed in blocks are NOT indented.
Insert space padding after paren headers only (e.g. 'if', 'for', 'while'...).
Any end of line comments will remain in the original column, if possible.
1
https://gitee.com/GaussianPrince/mini-arm-os.git
git@gitee.com:GaussianPrince/mini-arm-os.git
GaussianPrince
mini-arm-os
mini-arm-os
master

搜索帮助