]> git.proxmox.com Git - ceph.git/blob - ceph/src/boost/tools/quickbook/_clang-format
import new upstream nautilus stable release 14.2.8
[ceph.git] / ceph / src / boost / tools / quickbook / _clang-format
1
2 # Copyright 2017 Daniel James.
3 # Distributed under the Boost Software License, Version 1.0. (See accompanying
4 # file LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.txt)
5
6 # Using clang format 4.0
7 # http://llvm.org/releases/4.0.0/tools/clang/docs/ClangFormatStyleOptions.html
8
9 BasedOnStyle: LLVM
10
11 # Basic settings
12 ColumnLimit: 80
13 NamespaceIndentation: All
14 ContinuationIndentWidth: 4
15 IndentWidth: 4
16 UseTab: Never
17 Language: Cpp
18 Standard: Cpp03
19
20 # Code layout
21 AlignAfterOpenBracket: AlwaysBreak
22 AlignTrailingComments: true
23 AllowShortBlocksOnASingleLine: true
24 AllowShortFunctionsOnASingleLine: true
25 AllowShortIfStatementsOnASingleLine: true
26 BinPackParameters: false
27 BreakBeforeBraces: Custom
28 ConstructorInitializerAllOnOneLineOrOnePerLine: true
29 BreakConstructorInitializersBeforeComma: true
30 BraceWrapping:
31 AfterNamespace: true
32 AfterClass: true
33 AfterStruct: true
34 AfterUnion: true
35 AfterEnum: true
36 AfterFunction: true
37 AfterControlStatement: false
38 BeforeCatch: false
39 BeforeElse: true
40 PointerAlignment: Left
41
42 PenaltyReturnTypeOnItsOwnLine: 1000
43
44 # Include order
45
46 IncludeCategories:
47 - Regex: '^<windows.h>$'
48 Priority: 10
49 - Regex: '^<boost/.*>$'
50 Priority: 30
51 - Regex: '^<.*>$'
52 Priority: 20
53 - Regex: '^".*"$'
54 Priority: 40
55
56 # Boost specific stuff
57 ForEachMacros: [ BOOST_FOREACH, QUICKBOOK_FOR ]