<div dir="ltr"><div class="gmail_quote gmail_msg"><div dir="ltr" class="gmail_msg">On Fri, 20 Jan 2017 at 11:26 Eric Liu via Phabricator <<a href="mailto:reviews@reviews.llvm.org" class="gmail_msg" target="_blank">reviews@reviews.llvm.org</a>> wrote:<br class="gmail_msg"></div><blockquote class="gmail_quote gmail_msg" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">ioeric added a comment.<br class="gmail_msg">
<br class="gmail_msg">
In <a href="https://reviews.llvm.org/D28943#651536" rel="noreferrer" class="gmail_msg" target="_blank">https://reviews.llvm.org/D28943#651536</a>, @amaiorano wrote:<br class="gmail_msg">
<br class="gmail_msg">
> In <a href="https://reviews.llvm.org/D28943#651489" rel="noreferrer" class="gmail_msg" target="_blank">https://reviews.llvm.org/D28943#651489</a>, @ioeric wrote:<br class="gmail_msg">
><br class="gmail_msg">
> > In <a href="https://reviews.llvm.org/D28943#651488" rel="noreferrer" class="gmail_msg" target="_blank">https://reviews.llvm.org/D28943#651488</a>, @amaiorano wrote:<br class="gmail_msg">
> ><br class="gmail_msg">
> > > In <a href="https://reviews.llvm.org/D28943#651470" rel="noreferrer" class="gmail_msg" target="_blank">https://reviews.llvm.org/D28943#651470</a>, @ioeric wrote:<br class="gmail_msg">
> > ><br class="gmail_msg">
> > > > @amaiorano: The test itself is correct. It's just that this test failed in our internal test. We could've fixed it internally, but the fix would be ugly. Since the intended behavior is already covered in the case above it, and it's really just checking the default fallback style is LLVM, which is not related to the original change, I think it makes sense to get rid of the case. Hope you don't mind :)<br class="gmail_msg">
> > ><br class="gmail_msg">
> > ><br class="gmail_msg">
> > > Of course I don't mind :) Why did it fail your internal tests, btw? Just curious. Was it something I could've detected myself?<br class="gmail_msg">
> ><br class="gmail_msg">
> ><br class="gmail_msg">
> > Probably not... it's just that our default fallback style is "Google" instead of "LLVM".<br class="gmail_msg">
><br class="gmail_msg">
><br class="gmail_msg">
> (I replied the following by email, but I'm not sure where it went... posting it here instead)<br class="gmail_msg">
><br class="gmail_msg">
> You mean you build a modified version of clang-format where Style is initialized to getGoogleStyle()?<br class="gmail_msg">
><br class="gmail_msg">
> I had wondered whether adding a "defaultStyle" argument might be useful, specifically in the case where you want to pass in yaml that simply tweaks the default style, but I figured it's not much harder to pass in "BasedOnStyle" in the yaml.<br class="gmail_msg">
<br class="gmail_msg">
<br class="gmail_msg">
No.. we set both default style and default fallback style (tool options) to "google" in our build.<br class="gmail_msg">
<br class="gmail_msg"></blockquote><div><br></div><div>How do you do that? I'm trying to understand how running that specific test failed for you guys. What I'm getting is that my test would not explicitly set fallback-style and assume it would use LLVM, but you're saying on your end, there's a way to set the fallback-style otherwise (you wrote "tools options", but I'm not sure what that means). Sorry for being pedantic :)</div><div> </div><blockquote class="gmail_quote gmail_msg" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
I don't see why "defaultStyle" would be useful. I think having the existing "style" and "fallback-style" options is sufficient (and already a bit confusing).<br class="gmail_msg"></blockquote><div><br></div><div>I agree completely.</div><div> </div><blockquote class="gmail_quote gmail_msg" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
<br class="gmail_msg">
<br class="gmail_msg">
Repository:<br class="gmail_msg">
  rL LLVM<br class="gmail_msg">
<br class="gmail_msg">
<a href="https://reviews.llvm.org/D28943" rel="noreferrer" class="gmail_msg" target="_blank">https://reviews.llvm.org/D28943</a><br class="gmail_msg">
<br class="gmail_msg">
<br class="gmail_msg">
<br class="gmail_msg">
</blockquote></div></div>