|
| 1 | +# clang-format-9 |
| 2 | +Language: Cpp |
| 3 | +AccessModifierOffset: -4 # public: private: 들여쓰기 offset |
| 4 | +AlignAfterOpenBracket: Align # 매개변수 정렬 |
| 5 | +AlignConsecutiveMacros: true # 매크로 정렬 |
| 6 | +AlignConsecutiveAssignments: true # 연속적인 변수 초기화 정렬 |
| 7 | +AlignConsecutiveDeclarations: true # 연속적인 타입 변수 정렬 |
| 8 | +AlignEscapedNewlines: Left # \ 줄바꾸기 가장 가까운 쪽 |
| 9 | +AlignOperands: true # 연산자 정렬 |
| 10 | +AlignTrailingComments: true # 끝의 주석 정렬 |
| 11 | + |
| 12 | +AllowAllConstructorInitializersOnNextLine: false |
| 13 | +AllowAllParametersOfDeclarationOnNextLine: false # 길면 한 줄에 하나씩 |
| 14 | + |
| 15 | +AllowShortBlocksOnASingleLine: true # 짧으면 한 줄로 |
| 16 | +AllowShortCaseLabelsOnASingleLine: true |
| 17 | +AllowShortFunctionsOnASingleLine: All |
| 18 | +AllowShortIfStatementsOnASingleLine: Always |
| 19 | +AllowShortLambdasOnASingleLine: All |
| 20 | +AllowShortLoopsOnASingleLine: true |
| 21 | + |
| 22 | +AlwaysBreakAfterReturnType: None # 리턴타입 줄 바꿈 |
| 23 | +AlwaysBreakBeforeMultilineStrings: true # 여러 줄 str 처음 줄 바꿈 |
| 24 | +AlwaysBreakTemplateDeclarations: Yes # 템플릿 줄 바꿈 |
| 25 | + |
| 26 | +BinPackArguments: false # 매개변수 정렬 |
| 27 | +BinPackParameters: false # 선언시 매개변수 정렬 |
| 28 | + |
| 29 | +BreakBeforeBraces: Custom |
| 30 | +BraceWrapping: # 다음줄에 괄호를 시작할지 결정 |
| 31 | + AfterCaseLabel: false |
| 32 | + AfterClass: false |
| 33 | + AfterControlStatement: false |
| 34 | + AfterEnum: false |
| 35 | + AfterFunction: false |
| 36 | + AfterNamespace: false |
| 37 | + AfterStruct: false |
| 38 | + AfterUnion: false |
| 39 | + AfterExternBlock: false |
| 40 | + BeforeCatch: false |
| 41 | + BeforeElse: false |
| 42 | + IndentBraces: false |
| 43 | + SplitEmptyFunction: false |
| 44 | + SplitEmptyRecord: false |
| 45 | + SplitEmptyNamespace: false |
| 46 | + |
| 47 | +BreakBeforeBinaryOperators: All # 연산자 전에 줄 바꿈 |
| 48 | +BreakBeforeTernaryOperators: true # ? : (삼항)연산자 전에 줄 바꿈 |
| 49 | +BreakConstructorInitializers: BeforeComma |
| 50 | +BreakInheritanceList: BeforeComma |
| 51 | + |
| 52 | +ColumnLimit: 80 # 한 줄 간격 |
| 53 | +# CommentPragmas: '^ IWYU pragma:' |
| 54 | +CompactNamespaces: false |
| 55 | +ConstructorInitializerAllOnOneLineOrOnePerLine: false |
| 56 | +ConstructorInitializerIndentWidth: 4 |
| 57 | +ContinuationIndentWidth: 4 |
| 58 | + |
| 59 | +Cpp11BracedListStyle: true # {} 시작과 끝 띄어쓰기 x |
| 60 | +DerivePointerAlignment: false # .PointerAlignmet fallback |
| 61 | +DisableFormat: false |
| 62 | + |
| 63 | +FixNamespaceComments: true |
| 64 | +IncludeBlocks: Regroup |
| 65 | +IncludeCategories: |
| 66 | + - Regex: '^"(llvm|llvm-c|clang|clang-c)/' |
| 67 | + Priority: 2 |
| 68 | + - Regex: '^(<|"(gtest|gmock|isl|json)/)' |
| 69 | + Priority: 3 |
| 70 | + - Regex: '<[[:alnum:].]+>' |
| 71 | + Priority: 4 |
| 72 | + - Regex: '.*' |
| 73 | + Priority: 1 |
| 74 | +IncludeIsMainRegex: '(Test)?$' |
| 75 | + |
| 76 | +IndentCaseLabels: false |
| 77 | +IndentPPDirectives: None # 전처리 indent 안함 |
| 78 | +IndentWidth: 4 |
| 79 | +IndentWrappedFunctionNames: true |
| 80 | + |
| 81 | +KeepEmptyLinesAtTheStartOfBlocks: false # 시작 시 빈줄 제거 |
| 82 | +MaxEmptyLinesToKeep: 2 # 최대 빈 줄 |
| 83 | +NamespaceIndentation: Inner |
| 84 | + |
| 85 | +PointerAlignment: Right # uint16_t *a; |
| 86 | +ReflowComments: true # comment 줄 변경 |
| 87 | + |
| 88 | +SortIncludes: true |
| 89 | +SortUsingDeclarations: true |
| 90 | + |
| 91 | +SpaceAfterCStyleCast: false |
| 92 | +SpaceAfterLogicalNot: true |
| 93 | +SpaceAfterTemplateKeyword: false |
| 94 | + |
| 95 | +SpaceBeforeAssignmentOperators: true # = 앞 공백 |
| 96 | +SpaceBeforeCpp11BracedList: true |
| 97 | +SpaceBeforeCtorInitializerColon: false |
| 98 | +SpaceBeforeInheritanceColon: false |
| 99 | +SpaceBeforeParens: Never # () 앞 띄어쓰기 |
| 100 | +SpaceBeforeRangeBasedForLoopColon: false |
| 101 | +SpacesBeforeTrailingComments: 4 # // 앞 공백 |
| 102 | + |
| 103 | +SpaceInEmptyParentheses: false |
| 104 | +SpacesInAngles: false |
| 105 | +SpacesInCStyleCastParentheses: false |
| 106 | +SpacesInContainerLiterals: false |
| 107 | +SpacesInParentheses: false |
| 108 | +SpacesInSquareBrackets: false |
| 109 | + |
| 110 | +Standard: Cpp11 |
| 111 | +TabWidth: 4 |
| 112 | +UseTab: Never |
| 113 | + |
0 commit comments