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# Becuase you have to start somewhere. 10BasedOnStyle: LLVM 11 12# Basic settings 13ColumnLimit: 80 14NamespaceIndentation: All 15ContinuationIndentWidth: 2 16IndentWidth: 2 17UseTab: Never 18Language: Cpp 19Standard: Cpp03 20 21# Code layout 22AlignAfterOpenBracket: DontAlign 23AlignTrailingComments: true 24BreakBeforeBraces: Custom 25BraceWrapping: 26 AfterNamespace: false 27 AfterClass: true 28 AfterStruct: true 29 AfterUnion: true 30 AfterEnum: true 31 AfterFunction: true 32 AfterControlStatement: false 33 BeforeCatch: false 34 BeforeElse: false 35PointerAlignment: Left 36 37# Boost specific stuff 38ForEachMacros: [ BOOST_FOREACH, UNORDERED_AUTO_TEST ] 39