<div dir="ltr">Frank<div><br></div><div>These changes are independent of the clang-format version. You are most likely missing the file Cactus/.clang-format that defines how to format the code. By default, clang-format assumes C++11 compilers for C++ code, but some machines cannot handle this yet, so we format for the C++03 standard. (This is the option &quot;Standard: Cpp03&quot; in .clang-format.)</div><div><br></div><div>-erik</div></div><div class="gmail_extra"><br><div class="gmail_quote">On Mon, Nov 23, 2015 at 3:23 PM, Frank Loeffler <span dir="ltr">&lt;<a href="mailto:knarf@cct.lsu.edu" target="_blank">knarf@cct.lsu.edu</a>&gt;</span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><span class="">On Mon, Nov 23, 2015 at 03:13:36PM -0500, Erik Schnetter wrote:<br>
&gt; ... and here is how to reformat your source code:<br>
&gt;<br>
&gt; (1) Install clang-format, which comes with the clang compiler, e.g. the<br>
&gt; &quot;clang-format-3.6&quot; package on Ubuntu<br>
&gt; (2) Run &quot;clang-format -i *.hh *.cc&quot; (the &quot;-i&quot; option modifies files<br>
&gt; in-place)<br>
<br>
</span>This is what happens for me:<br>
<br>
$ git clone <a href="https://bitbucket.org/eschnett/carpet.git" rel="noreferrer" target="_blank">https://bitbucket.org/eschnett/carpet.git</a><br>
Cloning into &#39;carpet&#39;...<br>
remote: Counting objects: 42555, done.<br>
remote: Compressing objects: 100% (12129/12129), done.<br>
remote: Total 42555 (delta 31639), reused 40682 (delta 30202)<br>
Receiving objects: 100% (42555/42555), 59.27 MiB | 22.80 MiB/s, done.<br>
Resolving deltas: 100% (31639/31639), done.<br>
Checking connectivity... done.<br>
+knarf@topf:~/ET_dev/repos$ cd carpet/Carpet/src/<br>
+knarf@topf:~/ET_dev/repos/carpet/Carpet/src$ clang-format-3.5 -i *.hh<br>
*.cc<br>
+knarf@topf:~/ET_dev/repos/carpet/Carpet/src$ git diff | wc -l<br>
594<br>
<br>
Does this mean we would require clang-format-3.6 (and not supporting<br>
3.5 or earlier)? I thought clang-format wouldn&#39;t change the way it<br>
formats stuff in between versions, but it apparently does. One example<br>
from the current changes:<br>
<br>
-vector&lt;vector&lt;int&gt; &gt; const &amp;HostProcs() { return host_procs; }<br>
+vector&lt;vector&lt;int&gt;&gt; const &amp;HostProcs() { return host_procs; }<br>
<span class="HOEnZb"><font color="#888888"><br>
Frank<br>
<br>
</font></span></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>