Created
May 11, 2025 13:57
-
-
Save Meteor-Z/47e1c73852e0ae3999403992a6349650 to your computer and use it in GitHub Desktop.
clang-format
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| # 基于LLVM | |
| BasedOnStyle: LLVM | |
| # 设置缩进是 4 空格 | |
| IndentWidth: 4 | |
| # 使用空格 | |
| UseTab: Never | |
| # 设置访问修饰符(public、private、protected)的偏移量为-4,使得与class对其 | |
| AccessModifierOffset: -4 | |
| # 允许排序#include | |
| SortIncludes: false | |
| # 指针和引用的对齐: Left, Right, Middle | |
| PointerAlignment: Left | |
| # 模板换行 | |
| AlwaysBreakTemplateDeclarations: Yes | |
| # 允许重新排版注释 | |
| ReflowComments: true | |
| # 对齐连续的尾随的注释 | |
| AlignTrailingComments: true | |
| ColumnLimit: 90 | |
| # 设置初始化的 | |
| Cpp11BracedListStyle: false | |
| SpaceBeforeCpp11BracedList: true |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment