/ .clang-format
.clang-format
1 --- 2 Language: Cpp 3 BasedOnStyle: Chromium 4 AccessModifierOffset: -4 5 AlignAfterOpenBracket: Align 6 BinPackParameters: false 7 BraceWrapping: 8 AfterClass: true 9 AfterControlStatement: true 10 AfterEnum: true 11 AfterFunction: true 12 AfterNamespace: true 13 AfterObjCDeclaration: true 14 AfterStruct: true 15 AfterUnion: true 16 BeforeCatch: true 17 BeforeElse: true 18 SplitEmptyFunction: false 19 BreakBeforeBraces: Custom 20 BreakBeforeTernaryOperators: false 21 ColumnLimit: 100 22 ConstructorInitializerIndentWidth: 2 23 IncludeBlocks: Preserve 24 IncludeCategories: 25 26 # Local includes "": 27 - Regex: '^".*' 28 Priority: 1 29 30 # Third party libraries: 31 - Regex: '^<cryptopp/.*' 32 Priority: 70 33 34 # Standard library extensions / common generic purpose libraries: 35 - Regex: '^<boost/.*' 36 Priority: 80 37 38 # Testing libraries: 39 - Regex: '^<benchmark/.*' 40 Priority: 90 41 - Regex: '^<gtest/.*' 42 Priority: 90 43 44 # Public includes <>: 45 - Regex: '^<.*\.h|hpp>' 46 Priority: 2 47 48 # C++ standard library: 49 - Regex: '^<[^.]*>$' 50 Priority: 100 51 52 # Anything else: 53 - Regex: '.*' 54 Priority: 4 55 56 IncludeIsMainRegex: '(Test)?$' 57 IndentCaseLabels: false 58 IndentWidth: 4 59 MaxEmptyLinesToKeep: 2 60 PenaltyBreakAssignment: 1 61 PenaltyBreakComment: 50 62 TabWidth: 4 63 ... 64