_clang-format 923 B

1234567891011121314151617181920212223242526272829303132333435363738
  1. # Copyright 2017 Daniel James.
  2. # Distributed under the Boost Software License, Version 1.0. (See accompanying
  3. # file LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.txt)
  4. # Using clang format 4.0
  5. # http://llvm.org/releases/4.0.0/tools/clang/docs/ClangFormatStyleOptions.html
  6. # Becuase you have to start somewhere.
  7. BasedOnStyle: LLVM
  8. # Basic settings
  9. ColumnLimit: 80
  10. NamespaceIndentation: All
  11. ContinuationIndentWidth: 2
  12. IndentWidth: 2
  13. UseTab: Never
  14. Language: Cpp
  15. Standard: Cpp03
  16. # Code layout
  17. AlignAfterOpenBracket: DontAlign
  18. AlignTrailingComments: true
  19. BreakBeforeBraces: Custom
  20. BraceWrapping:
  21. AfterNamespace: false
  22. AfterClass: true
  23. AfterStruct: true
  24. AfterUnion: true
  25. AfterEnum: true
  26. AfterFunction: true
  27. AfterControlStatement: false
  28. BeforeCatch: false
  29. BeforeElse: false
  30. PointerAlignment: Left
  31. # Boost specific stuff
  32. ForEachMacros: [ BOOST_FOREACH, UNORDERED_AUTO_TEST ]