... and here is how to reformat your source code:
(1) Install clang-format, which comes with the clang compiler, e.g. the "clang-format-3.6" package on Ubuntu (2) Run "clang-format -i *.hh *.cc" (the "-i" option modifies files in-place)
(3) For added benefit: Install a clang-format package for your favourite editor that provides a key shortcode for reformatting, or even reformats automatically when you save (that's what I do). I'm using Atom < https://atom.io%3E with https://github.com/LQDH/atom-clang-format for this.
-erik
On Mon, Nov 23, 2015 at 2:34 PM, Erik Schnetter schnetter@gmail.com wrote:
I formatted Carpet's source code with clang-format. If you are maintaining a branch or patches, then you should reformat them as well to minimize conflicts. I am very interested in hearing whether this causes any problems.
-erik
-- Erik Schnetter schnetter@gmail.com http://www.perimeterinstitute.ca/personal/eschnetter/