---Language:Cpp# 目标格式化编程语言AccessModifierOffset:-4# TabWidth设置后才生效AlignAfterOpenBracket:AlignAlignArrayOfStructures:NoneAlignConsecutiveAssignments:Enabled:falseAcrossEmptyLines:falseAcrossComments:falseAlignCompound:falsePadOperators:falseAlignConsecutiveBitFields:Enabled:falseAcrossEmptyLines:falseAcros...
(包括空行及注释), 建议False AlignCompound: false # 是否(右)对齐赋值操作的操作符, 建议true PadOperators: true # 同AlignConsecutiveAssignments, 表示连续位定义语句出现时, 是否需要对齐:符号, 位变量定义用得少, 可以不开启 AlignConsecutiveBitFields: # 是否启用, 建议不启用 Enabled: false # 同Align...
Cpp, Java, JavaScript, ObjC, Proto, TableGen, TextProtoLanguage:CppBasedOnStyle:LLVM# 访问说明符(public、private等)的偏移AccessModifierOffset:-4# 开括号(开圆括号、开尖括号、开方括号)后的对齐: Align, DontAlign, AlwaysBreak(总是在开括号后换行)AlignAfterOpenBracket:DontAlign# 对齐数组列AlignArray...
AlignAfterOpenBracket: Align AlignArrayOfStructures: None AlignConsecutiveMacros: None AlignConsecutiveAssignments: None AlignConsecutiveBitFields: None AlignConsecutiveDeclarations: None AlignEscapedNewlines: Right AlignOperands: Align AlignTrailingComments: true AllowAllArgumentsOnNextLine: true AllowAllParametersO...
AlignConsecutiveMacros: None # 连续赋值时,对齐所有等号 AlignConsecutiveAssignments: None # 对齐连续位字段 AlignConsecutiveBitFields: None # 连续声明时,对齐所有声明的变量名 AlignConsecutiveDeclarations: None # 左对齐逃脱换行(使用反斜杠换行)的反斜杠 ...
(右)对齐赋值操作的操作符, 建议truePadOperators:true# 同AlignConsecutiveAssignments, 表示连续位定义语句出现时, 是否需要对齐:符号, 位变量定义用得少, 可以不开启AlignConsecutiveBitFields:# 是否启用, 建议不启用Enabled:false# 同AlignConsecutiveAssignmentsAcrossEmptyLines:false# 同AlignConsecutiveAssignmentsAcross...
AlignConsecutiveDeclarations: true # 对齐连续位域字段的风格 # AlignConsecutiveBitFields: AcrossEmptyLinesAndComments # 对齐连续宏定义的风格 # AlignConsecutiveMacros: Consecutive #clang-format 12 # 用于在使用反斜杠换行中对齐反斜杠的选项 AlignEscapedNewlines: Left ...
AlignCompound: true PadOperators: true AlignConsecutiveBitFields: Enabled: true AcrossEmptyLines: false AcrossComments: false AlignCompound: true PadOperators: true AlignConsecutiveDeclarations: Enabled: false AcrossEmptyLines: false AcrossComments: false AlignCompound: false PadOperators: false AlignConsecuti...
AccessModifierOffset: -2 AlignAfterOpenBracket: Align AlignConsecutiveMacros: None AlignConsecutiveAssignments: None AlignConsecutiveBitFields: None AlignConsecutiveDeclarations: None AlignEscapedNewlines: Right AlignOperands: Align AlignTrailingComments: true AllowAllArgumentsOnNextLine: true AllowAllConstructorInit...
AlignConsecutiveBitFields: true # Enabled: false # AcrossEmptyLines: true # AcrossComments: true AlignEscapedNewlines: Right AlignOperands: Align AlignTrailingComments: true # Starting with clang-format 16: # Kind: Always # OverEmptyLines: 2 # MaxEmptyLinesToKeep: 2 AllowAllArgumentsOnNextLine: ...