<div dir="ltr">git clang-format should do it. There are two things it doesn't handle:<div><br></div><div>1) It puts constructor initializer list separators (comma and colon) at the beginning of each line instead of at the end of each line.</div><div>2) It doesn't put return type on a separate line for declarations (but it does for definitions).</div><div><br></div><div>I should probably take some time and go fix those 2 issues in clang-format...</div><div><br></div><div>For anyone not using git, `git clang-format` essentially runs the script `llvm/tools/clang/tools/clang-format/git-clang-format`. You can run that script manually with --help to get more information about how to use it without git. And there may also be a way to integrate it into svn so you can write something like `svn clang-format`</div></div><br><div class="gmail_quote"><div dir="ltr">On Sun, Oct 25, 2015 at 8:57 AM Todd Fiala via lldb-dev <<a href="mailto:lldb-dev@lists.llvm.org">lldb-dev@lists.llvm.org</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr">Hi all,<div><br></div><div>What's the proper command line invocation to run our sources through to get proper LLVM formatting and other desired fix-ups?</div><div><br></div><div>Thanks!<br clear="all"><div><br></div>-- <br><div><div dir="ltr">-Todd</div></div>
</div></div>
_______________________________________________<br>
lldb-dev mailing list<br>
<a href="mailto:lldb-dev@lists.llvm.org" target="_blank">lldb-dev@lists.llvm.org</a><br>
<a href="http://lists.llvm.org/cgi-bin/mailman/listinfo/lldb-dev" rel="noreferrer" target="_blank">http://lists.llvm.org/cgi-bin/mailman/listinfo/lldb-dev</a><br>
</blockquote></div>