2 Star 0 Fork 0

mirrors_ARMmbed/mbed-bootloader-extended

加入 Gitee
与超过 1400万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
文件
克隆/下载
.astylerc 1.37 KB
一键复制 编辑 原始数据 按行查看 历史
LIYOU ZHOU 提交于 2018-08-22 22:41 +08:00 . v3.4.0 (#5)
# Mbed OS code style definition file for astyle
# Don't create backup files, let git handle it
suffix=none
# K&R style
style=kr
# 1 TBS addition to k&r, add braces to one liners
# Use -j as it was changed in astyle from brackets to braces, this way it is compatible with older astyle versions
-j
# 4 spaces, convert tabs to spaces
indent=spaces=4
convert-tabs
# Indent switches and cases
indent-switches
# Remove spaces in and around parentheses
unpad-paren
# Insert a space after if, while, for, and around operators
pad-header
pad-oper
# Pointer/reference operators go next to the name (on the right)
align-pointer=name
align-reference=name
# Attach { for classes and namespaces
attach-namespaces
attach-classes
# Extend longer lines, define maximum 120 value. This results in aligned code,
# otherwise the lines are broken and not consistent
max-continuation-indent=120
# Style formatting options for Update Client codebase.
# Each line no greater than 120 characters.
--max-code-length=120
# Display only files that have been formatted.
-Q
# Keep one-line blocks, especially for union initialization of error structs.
--keep-one-line-blocks
# Indent pre-processor block
# --indent-preproc-block
# Delete empty lines
# --delete-empty-lines
# Attach the return type to a function definition or declaration.
--attach-return-type # Definition
--attach-return-type-decl # Declaration
Loading...
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
1
https://gitee.com/mirrors_ARMmbed/mbed-bootloader-extended.git
git@gitee.com:mirrors_ARMmbed/mbed-bootloader-extended.git
mirrors_ARMmbed
mbed-bootloader-extended
mbed-bootloader-extended
master

搜索帮助