<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 &quot;clang-format-3.6&quot; package on Ubuntu</div><div>(2) Run &quot;clang-format -i *.hh *.cc&quot; (the &quot;-i&quot; 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&#39;s what I do). I&#39;m using Atom &lt;<a href="https://atom.io">https://atom.io</a>&gt; with &lt;<a href="https://github.com/LQDH/atom-clang-format">https://github.com/LQDH/atom-clang-format</a>&gt; 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">&lt;<a href="mailto:schnetter@gmail.com" target="_blank">schnetter@gmail.com</a>&gt;</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&#39;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 &lt;<a href="mailto:schnetter@gmail.com" target="_blank">schnetter@gmail.com</a>&gt; <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 &lt;<a href="mailto:schnetter@gmail.com" target="_blank">schnetter@gmail.com</a>&gt; <a href="http://www.perimeterinstitute.ca/personal/eschnetter/" target="_blank">http://www.perimeterinstitute.ca/personal/eschnetter/</a><br></div>
</div>