[dragonegg] r176016 - Format with clang-format.

Daniel Jasper djasper at google.com
Tue Feb 26 05:20:15 PST 2013


On Mon, Feb 25, 2013 at 8:14 PM, Sean Silva <silvas at purdue.edu> wrote:

>      for (SmallSetVector<Constant *, 32>::iterator AI =
> -             AttributeCompilerUsedGlobals.begin(), AE =
> -             AttributeCompilerUsedGlobals.end();
> +             AttributeCompilerUsedGlobals
> +                 .begin(), AE = AttributeCompilerUsedGlobals.end();
>           AI != AE; ++AI) {
>
>
> This looks a bit dubious.
>

This was fixed last week and now gets formatted as:

for (SmallSetVector<Constant *, 32>::iterator
         AI = AttributeCompilerUsedGlobals.begin(),
         AE = AttributeCompilerUsedGlobals.end();
     AI != AE; ++AI)

Which is IMO an even better solution.


> -- Sean Silva
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20130226/6c4f8cfa/attachment.html>


More information about the llvm-commits mailing list