|
1 | 1 | --- |
2 | | -BasedOnStyle: LLVM |
3 | | -Language: Json |
4 | | -IndentWidth: 4 |
5 | | -UseTab: Never |
6 | | ---- |
7 | | -Language: Cpp |
8 | | -AccessModifierOffset: -2 |
9 | | -AlignAfterOpenBracket: DontAlign |
10 | | -AlignConsecutiveAssignments: false |
11 | | -AlignConsecutiveDeclarations: false |
12 | | -AlignEscapedNewlines: Left |
13 | | -AlignOperands: true |
14 | | -AlignTrailingComments: false |
15 | | -AllowAllParametersOfDeclarationOnNextLine: false |
16 | | -AllowShortBlocksOnASingleLine: true |
17 | | -AllowShortCaseLabelsOnASingleLine: false |
18 | | -AllowShortFunctionsOnASingleLine: All |
19 | | -AllowShortIfStatementsOnASingleLine: true |
20 | | -AllowShortLoopsOnASingleLine: true |
21 | | -AlwaysBreakAfterDefinitionReturnType: None |
22 | | -AlwaysBreakAfterReturnType: None |
23 | | -AlwaysBreakBeforeMultilineStrings: true |
24 | | -AlwaysBreakTemplateDeclarations: false |
25 | | -BinPackArguments: false |
26 | | -BinPackParameters: false |
27 | | -BraceWrapping: |
28 | | - AfterClass: true |
29 | | - AfterControlStatement: false |
30 | | - AfterEnum: false |
31 | | - AfterFunction: true |
32 | | - AfterNamespace: false |
33 | | - AfterObjCDeclaration: false |
34 | | - AfterStruct: true |
35 | | - AfterUnion: false |
36 | | - BeforeCatch: false |
37 | | - BeforeElse: false |
38 | | - IndentBraces: false |
39 | | - SplitEmptyFunction: false |
40 | | - SplitEmptyNamespace: true |
41 | | - SplitEmptyRecord: true |
42 | | -BreakAfterJavaFieldAnnotations: true |
43 | | -BreakBeforeBinaryOperators: NonAssignment |
44 | | -BreakBeforeBraces: Custom |
45 | | -BreakBeforeInheritanceComma: true |
46 | | -BreakBeforeTernaryOperators: true |
47 | | -BreakConstructorInitializers: BeforeColon |
48 | | -BreakConstructorInitializersBeforeComma: false |
49 | | -BreakStringLiterals: true |
50 | | -ColumnLimit: 120 |
51 | | -CommentPragmas: '^ IWYU pragma:' |
52 | | -CompactNamespaces: false |
53 | | -ConstructorInitializerAllOnOneLineOrOnePerLine: false |
54 | | -ConstructorInitializerIndentWidth: 2 |
55 | | -ContinuationIndentWidth: 2 |
| 2 | +# VersatusHPC C++ style |
| 3 | +# Base: Google, with readability tweaks for enums, initializer lists, |
| 4 | +# and constructor initializers. |
| 5 | +BasedOnStyle: Google |
| 6 | +Language: Cpp |
| 7 | + |
| 8 | +# Enums: one enumerator per line |
| 9 | +AllowShortEnumsOnASingleLine: false |
| 10 | + |
| 11 | +# Constructor initializer lists: one per line, comma-first |
| 12 | +BreakConstructorInitializers: BeforeComma |
| 13 | +PackConstructorInitializers: Never |
| 14 | + |
| 15 | +# Spaces inside braces on initializer lists: { x, y } not {x, y} |
56 | 16 | Cpp11BracedListStyle: false |
57 | | -DerivePointerAlignment: false |
58 | | -DisableFormat: false |
59 | | -ExperimentalAutoDetectBinPacking: true |
60 | | -FixNamespaceComments: true |
61 | | -ForEachMacros: |
62 | | - - foreach |
63 | | - - Q_FOREACH |
64 | | - - BOOST_FOREACH |
65 | | -IncludeCategories: |
66 | | - - Priority: 2 |
67 | | - Regex: ^"(llvm|llvm-c|clang|clang-c)/ |
68 | | - - Priority: 3 |
69 | | - Regex: ^(<|"(gtest|gmock|isl|json)/) |
70 | | - - Priority: 1 |
71 | | - Regex: .* |
72 | | -IncludeIsMainRegex: (Test)?$ |
73 | | -IndentCaseLabels: false |
| 17 | + |
| 18 | +# Keep the rest Google-default but be explicit on a few things |
| 19 | +ColumnLimit: 80 |
74 | 20 | IndentWidth: 2 |
75 | | -IndentWrappedFunctionNames: true |
76 | | -JavaScriptQuotes: Leave |
77 | | -JavaScriptWrapImports: true |
78 | | -KeepEmptyLinesAtTheStartOfBlocks: true |
79 | | -MacroBlockBegin: '' |
80 | | -MacroBlockEnd: '' |
81 | | -MaxEmptyLinesToKeep: 2 |
82 | | -NamespaceIndentation: Inner |
83 | | -ObjCBlockIndentWidth: 7 |
84 | | -ObjCSpaceAfterProperty: true |
85 | | -ObjCSpaceBeforeProtocolList: false |
86 | | -PointerAlignment: Right |
87 | | -ReflowComments: true |
88 | | -SortIncludes: true |
89 | | -SortUsingDeclarations: false |
90 | | -SpaceAfterCStyleCast: false |
91 | | -SpaceAfterTemplateKeyword: false |
92 | | -SpaceBeforeAssignmentOperators: true |
93 | | -SpaceBeforeParens: ControlStatements |
94 | | -SpaceInEmptyParentheses: false |
95 | | -SpacesBeforeTrailingComments: 0 |
96 | | -SpacesInAngles: false |
97 | | -SpacesInCStyleCastParentheses: false |
98 | | -SpacesInContainerLiterals: true |
99 | | -SpacesInParentheses: false |
100 | | -SpacesInSquareBrackets: false |
101 | | -Standard: c++20 |
102 | | -TabWidth: 8 |
103 | 21 | UseTab: Never |
| 22 | +PointerAlignment: Left |
| 23 | +DerivePointerAlignment: false |
| 24 | +Standard: Latest |
| 25 | +... |
0 commit comments