[Users] Carpet source code reformatted

Erik Schnetter schnetter at gmail.com
Mon Nov 23 14:13:36 CST 2015


... 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> with <https://github.com/LQDH/atom-clang-format> for this.

-erik


On Mon, Nov 23, 2015 at 2:34 PM, Erik Schnetter <schnetter at 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 at gmail.com>
> http://www.perimeterinstitute.ca/personal/eschnetter/
>



-- 
Erik Schnetter <schnetter at gmail.com>
http://www.perimeterinstitute.ca/personal/eschnetter/
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.einsteintoolkit.org/pipermail/users/attachments/20151123/0f48b64c/attachment.html 


More information about the Users mailing list