<div dir="ltr">PING.<div><br><div>Is there anything I can do to make reviewing easier?</div><div><br></div><div>For example, I could run my code vs master on some large code bases (eg linux kernel, chromium), and verify that there are no crashes, and also manually spot check some results.</div></div><div><br></div><div>Ben</div></div><br><div class="gmail_quote"><div dir="ltr">On Wed, 20 Jul 2016 at 21:43 Ben Harper <<a href="mailto:rogojin@gmail.com">rogojin@gmail.com</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">bmharper added a comment.<br>
<br>
PING<br>
<br>
<br>
================<br>
Comment at: lib/Format/WhitespaceManager.cpp:95<br>
@@ -97,2 +94,3 @@<br>
   std::sort(Changes.begin(), Changes.end(), Change::IsBeforeInFile(SourceMgr));<br>
+  calculateScopeLevel();<br>
   calculateLineBreakInformation();<br>
----------------<br>
berenm wrote:<br>
> Maybe we could spare the computation if we aren't going to align anything?<br>
><br>
> Is it better for clarity to always compute additional information? @djasper what's the Clang way to do?<br>
><br>
That's a good point. One certainly could elide that if alignment was turned off. I think so long as it was mentioned in the comments of the ScopeLevel member variable, it would be OK to do so. However, I'll also just defer this decision to @djasper.<br>
<br>
<br>
Repository:<br>
  rL LLVM<br>
<br>
<a href="https://reviews.llvm.org/D21279" rel="noreferrer" target="_blank">https://reviews.llvm.org/D21279</a><br>
<br>
<br>
<br>
</blockquote></div>