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)
6 # Using clang format 4.0
7 # http://llvm.org/releases/4.0.0/tools/clang/docs/ClangFormatStyleOptions.html
13 NamespaceIndentation: All
14 ContinuationIndentWidth: 4
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
37 AfterControlStatement: false
40 PointerAlignment: Left
42 PenaltyReturnTypeOnItsOwnLine: 1000
47 - Regex: '^<windows.h>$'
49 - Regex: '^<boost/.*>$'
56 # Boost specific stuff
57 ForEachMacros: [ BOOST_FOREACH, QUICKBOOK_FOR ]