<div dir="ltr"><div class="gmail_extra"><br><div class="gmail_quote">On Thu, Feb 19, 2015 at 5:20 AM, Sergey Matveev <span dir="ltr"><<a href="mailto:earthdok@google.com" target="_blank">earthdok@google.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><span class="">================<br>
Comment at: lib/sanitizer_common/sanitizer_stoptheworld_linux_libcdep.cc:125<br>
@@ +124,3 @@<br>
</span><span class="">+ VReport(1, "Waiting on thread %d failed, detaching (errno %d).\n",<br>
+ tid, wperrno);<br>
+ internal_ptrace(PTRACE_DETACH, tid, NULL, NULL);<br>
</span>----------------<br>
<span class="">dvyukov wrote:<br>
> earthdok wrote:<br>
> > dvyukov wrote:<br>
> > > earthdok wrote:<br>
> > > > indent<br>
> > > it is 4 spaces aligned<br>
> > > in accordance with the Style<br>
> > nope, that's only for those cases where even the first parameter is wrapped<br>
> > otherwise you align to the first parameter<br>
> ... and what if the wrapped argument does not fit onto line if you align it to the first arg?...<br>
> ok, as you wish, done<br>
> the style guide instruction that covers this seems to be "follow the style of existing code"<br>
> and what if the wrapped argument does not fit onto line if you align it to the first arg?<br>
<br>
</span>Then you wrap at the opening bracket and indent with 4 spaces. It's pretty clear:<br></blockquote><div><br></div><div>I think you should just accept what clang-format does.</div><div> </div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
<br>
<a href="http://google-styleguide.googlecode.com/svn/trunk/cppguide.html#Function_Calls" target="_blank">http://google-styleguide.googlecode.com/svn/trunk/cppguide.html#Function_Calls</a><br>
<br>
> Either write the call all on a single line, wrap the arguments at the parenthesis, or start the arguments on a new line indented by four spaces and continue at that 4 space indent. In the absence of other considerations, use the minimum number of lines, including placing multiple arguments on each line where appropriate.<br>
<br>
Basically you can choose between<br>
<br>
```<br>
foobar(a,<br>
b)<br>
```<br>
<br>
and<br>
<br>
```<br>
foobar(<br>
a, b)<br>
```<br>
<br>
or<br>
<br>
```<br>
foobar(<br>
a,<br>
b)<br>
```<br>
<br>
But nowhere does it mention the middle ground of<br>
<br>
```<br>
foobar(a,<br>
b)<br>
```<br>
<div class="HOEnZb"><div class="h5"><br>
<a href="http://reviews.llvm.org/D7723" target="_blank">http://reviews.llvm.org/D7723</a><br>
<br>
EMAIL PREFERENCES<br>
<a href="http://reviews.llvm.org/settings/panel/emailpreferences/" target="_blank">http://reviews.llvm.org/settings/panel/emailpreferences/</a><br>
<br>
<br>
<br>
_______________________________________________<br>
llvm-commits mailing list<br>
<a href="mailto:llvm-commits@cs.uiuc.edu">llvm-commits@cs.uiuc.edu</a><br>
<a href="http://lists.cs.uiuc.edu/mailman/listinfo/llvm-commits" target="_blank">http://lists.cs.uiuc.edu/mailman/listinfo/llvm-commits</a><br>
</div></div></blockquote></div><br><br clear="all"><div><br></div>-- <br><div class="gmail_signature"><div dir="ltr">Alexey Samsonov<br><a href="mailto:vonosmas@gmail.com" target="_blank">vonosmas@gmail.com</a></div></div>
</div></div>