<div dir="ltr">... and here is how to reformat your source code:<div><br></div><div>(1) Install clang-format, which comes with the clang compiler, e.g. the "clang-format-3.6" package on Ubuntu</div><div>(2) Run "clang-format -i *.hh *.cc" (the "-i" option modifies files in-place)</div><div><br></div><div>(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 <<a href="https://atom.io">https://atom.io</a>> with <<a href="https://github.com/LQDH/atom-clang-format">https://github.com/LQDH/atom-clang-format</a>> for this.</div><div><br></div><div>-erik</div><div><br></div></div><div class="gmail_extra"><br><div class="gmail_quote">On Mon, Nov 23, 2015 at 2:34 PM, Erik Schnetter <span dir="ltr"><<a href="mailto:schnetter@gmail.com" target="_blank">schnetter@gmail.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr">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.<span class="HOEnZb"><font color="#888888"><div><br></div><div>-erik<br clear="all"><div><br></div>-- <br><div>Erik Schnetter <<a href="mailto:schnetter@gmail.com" target="_blank">schnetter@gmail.com</a>> <a href="http://www.perimeterinstitute.ca/personal/eschnetter/" target="_blank">http://www.perimeterinstitute.ca/personal/eschnetter/</a><br></div>
</div></font></span></div>
</blockquote></div><br><br clear="all"><div><br></div>-- <br><div class="gmail_signature">Erik Schnetter <<a href="mailto:schnetter@gmail.com" target="_blank">schnetter@gmail.com</a>> <a href="http://www.perimeterinstitute.ca/personal/eschnetter/" target="_blank">http://www.perimeterinstitute.ca/personal/eschnetter/</a><br></div>
</div>