Merge pull request #2179 from nfrmtkr/#2163-Race-condition-in-ACE_Future-double-check...
[ACE_TAO.git] / .clang-format
blob76061fee9057c42eb06d1e9f7e82a2796a65a84e
1 ---
2 # This configuration requires clang-format version v12.0 or newer.
3 BasedOnStyle: Mozilla
5 AlignConsecutiveDeclarations: None
6 AlignEscapedNewlines: Left
7 AlignOperands: false
8 AllowAllParametersOfDeclarationOnNextLine: false
9 AllowShortBlocksOnASingleLine: true
10 AllowShortFunctionsOnASingleLine: InlineOnly
11 AlwaysBreakAfterDefinitionReturnType: None
12 AlwaysBreakAfterReturnType: None
13 # AlwaysBreakAfterDefinitionReturnType: TopLevel
14 # AlwaysBreakAfterReturnType: TopLevelDefinitions
15 BinPackArguments: false
16 BinPackParameters: false
17 # parameters will either all be on the same line or will have one line each.
18 BreakBeforeBraces: Custom
19 BraceWrapping:
20   AfterCaseLabel:  true
21   AfterClass:      true
22   AfterControlStatement: Always
23   AfterEnum:       true
24   AfterFunction:   true
25   AfterNamespace:  true
26   AfterObjCDeclaration: true
27   AfterStruct:     true
28   AfterUnion:      true
29   AfterExternBlock: true
30   BeforeCatch:     true
31   BeforeElse:      true
32   BeforeLambdaBody: false
33   BeforeWhile:     true
34   IndentBraces:    false
35   SplitEmptyFunction: false
36   SplitEmptyRecord: true
37   SplitEmptyNamespace: true
38 # based on BreakBeforeBraces: GNU
39 ColumnLimit: 123 # MAYBE up to 160
41 # XXX v13.0 only IndentAccessModifiers: true
43 IndentPPDirectives: AfterHash
44 SortUsingDeclarations: false
45 SpaceAfterTemplateKeyword: true
46 SpaceAfterLogicalNot: false
47 SpaceBeforeParens: Always
48 SpaceInEmptyBlock: false
49 ...