2017-02-19 13:05:17 +00:00
|
|
|
|
|
|
|
# Copyright 2017 Daniel James.
|
|
|
|
# Distributed under the Boost Software License, Version 1.0. (See accompanying
|
|
|
|
# file LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.txt)
|
|
|
|
|
2017-10-29 16:52:46 +00:00
|
|
|
# Using clang format 4.0
|
|
|
|
# http://llvm.org/releases/4.0.0/tools/clang/docs/ClangFormatStyleOptions.html
|
2017-02-19 13:05:17 +00:00
|
|
|
|
|
|
|
# Becuase you have to start somewhere.
|
|
|
|
BasedOnStyle: LLVM
|
|
|
|
|
|
|
|
# Basic settings
|
|
|
|
ColumnLimit: 80
|
2017-06-11 20:55:59 +01:00
|
|
|
NamespaceIndentation: All
|
|
|
|
ContinuationIndentWidth: 2
|
|
|
|
IndentWidth: 2
|
2017-02-19 13:05:17 +00:00
|
|
|
UseTab: Never
|
|
|
|
Language: Cpp
|
|
|
|
Standard: Cpp03
|
|
|
|
|
|
|
|
# Code layout
|
|
|
|
AlignAfterOpenBracket: DontAlign
|
|
|
|
AlignTrailingComments: true
|
|
|
|
BreakBeforeBraces: Custom
|
|
|
|
BraceWrapping:
|
|
|
|
AfterNamespace: false
|
|
|
|
AfterClass: true
|
|
|
|
AfterStruct: true
|
|
|
|
AfterUnion: true
|
|
|
|
AfterEnum: true
|
|
|
|
AfterFunction: true
|
|
|
|
AfterControlStatement: false
|
|
|
|
BeforeCatch: false
|
|
|
|
BeforeElse: false
|
|
|
|
PointerAlignment: Left
|
|
|
|
|
|
|
|
# Boost specific stuff
|
2017-10-09 12:34:47 +01:00
|
|
|
ForEachMacros: [ BOOST_FOREACH, UNORDERED_AUTO_TEST ]
|