---
Language: Cpp
# 基础风格
BasedOnStyle: LLVM
# BSD / Allman 风格括号
BreakBeforeBraces: Allman
# 缩进
IndentWidth: 4
TabWidth: 4
UseTab: Never
# namespace 缩进
NamespaceIndentation: All
# class 访问修饰符缩进
AccessModifierOffset: -4
IndentAccessModifiers: false
# switch/case
IndentCaseLabels: false
IndentCaseBlocks: false
# 预处理
IndentPPDirectives: None
# 指针与引用
PointerAlignment: Right
ReferenceAlignment: Pointer
# 空格
SpaceBeforeParens: ControlStatements
SpacesInParentheses: false
SpaceAroundPointerQualifiers: Default
SpaceBeforeAssignmentOperators: true
# 运算符对齐
AlignOperands: Align
# 连续赋值不对齐
AlignConsecutiveAssignments: None
# 括号换行
BreakBeforeBinaryOperators: None
# 一行语句
AllowShortBlocksOnASingleLine: Always
AllowShortIfStatementsOnASingleLine: true
AllowShortLoopsOnASingleLine: true
AllowShortFunctionsOnASingleLine: Inline
# else if 保持同一行
BeforeElse: false
# 模板 >>
SpacesInAngles: Never
# 空行
KeepEmptyLinesAtTheStartOfBlocks: true
MaxEmptyLinesToKeep: 1
# 注释
ReflowComments: false
# 行宽
ColumnLimit: 0
# 多行条件缩进
ContinuationIndentWidth: 8
# include 排序
SortIncludes: false
# C++11
Standard: c++11
...
Astyle对应.clang-format
xyz5992026-06-08 21:14
相关推荐
郝学胜-神的一滴19 小时前
Effective STL 条款 07:指针容器销毁前先删除aaaameliaaa1 天前
VSCode的安装与配置Star(up up up)2 天前
MySQL 事务隔离级别是如何实现的?从 MVCC 到锁机制原理详解拼图20911 天前
VSCode 正则表达式使用指南小李不困还能学12 天前
VSCode_RemoteSSH_一直卡在下载服务器_解决教程lzj_pxxw15 天前
STM32移植FreeRTOS(Cmake+CubeMX)modelmd15 天前
离线安装与使用 vscode Remote SSH插件2501_9160088921 天前
iOS App 图标、启动屏和多语言搭配 方法,上架前使用KXBuild一次做好 App 图标2501_9159184121 天前
iOS 推送通知怎么实现,从 APNs p8 密钥到 iOS 真机收到第一条推送sunshine22 girl22 天前
copilot vscode 使用技巧