]> https://gitweb.dealii.org/ - dealii.git/commit
Add a .clang-format file 4476/head
authorMatthias Maier <tamiko@43-1.org>
Fri, 2 Jun 2017 20:59:19 +0000 (15:59 -0500)
committerMatthias Maier <tamiko@43-1.org>
Fri, 2 Jun 2017 21:32:15 +0000 (16:32 -0500)
commitd602db5d71859f346d3dd1ecc68ded198d8ccf64
tree6610c5e46e698b9950186c87a44d5e925680bbc5
parent043bf6ebac4fd77abe5310bdc85b49c18242a949
Add a .clang-format file

This commit adds a .clang-format [1] file that approximates our indent
style as defined by
  ./contrib/styles/astyle.rc

The motivation behind this commit is the simple fact that clang-format
(utilizing the clang lexer and tokenizer) is a far superior indenter
than any of the alternatives (including astyle).

The format file tries to give a close approximation to the output of
astyle. Unfortunately astyle misinterprets heavily templated stuff
quite a bit, so that
  astyle after clang-format  =  clang-format
does not always hold.

[1] https://clang.llvm.org/docs/ClangFormatStyleOptions.html
.clang-format [new file with mode: 0644]

In the beginning the Universe was created. This has made a lot of people very angry and has been widely regarded as a bad move.

Douglas Adams


Typeset in Trocchi and Trocchi Bold Sans Serif.