<div dir="ltr"><div class="gmail_extra"><div class="gmail_quote">On Fri, Nov 22, 2013 at 4:05 AM, Daniel Jasper <span dir="ltr"><<a href="mailto:djasper@google.com" target="_blank">djasper@google.com</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr">I think JS and C++ will almost always be in different sub-directories. So different .clang-format files are the way to go..</div>
</blockquote><div><br></div><div>For what it's worth, chromium has at least one directory that has both .cc and .js files. And I think it'd be nicer if a single top-level .clang-format was enough, instead of having to put one into every directory containing .js files.</div>
<div> </div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div class="HOEnZb"><div class="h5"><div class="gmail_extra"><br><br><div class="gmail_quote">On Thu, Nov 21, 2013 at 10:45 AM, Manuel Klimek <span dir="ltr"><<a href="mailto:klimek@google.com" target="_blank">klimek@google.com</a>></span> wrote:<br>

<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr"><div class="gmail_extra"><div class="gmail_quote"><div>On Thu, Nov 21, 2013 at 7:38 PM, Daniel Jasper <span dir="ltr"><<a href="mailto:djasper@google.com" target="_blank">djasper@google.com</a>></span> wrote:<br>


<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><br>
  After thinking some more, I guess my main reason is that I strongly doubt<br>
  that we'll ever have a JavaScript style and a C++ style that are identical<br>
  in all aspects other than the LanguageStandard.. So, the detection based on<br>
  the file extension inside clang-format will likely be redundant..<br></blockquote><div><br></div></div><div>I think this would be useful for mixed open source projects (or companies without an existing style guide).</div>

<div>
One interesting point is that our configuration is very "repo" centric, and there are enough mixed repos out there - how would we want to support this without major setup effort required for every engineer contributing to a project...</div>


</div></div></div>
</blockquote></div><br></div>
</div></div><br>_______________________________________________<br>
cfe-commits mailing list<br>
<a href="mailto:cfe-commits@cs.uiuc.edu">cfe-commits@cs.uiuc.edu</a><br>
<a href="http://lists.cs.uiuc.edu/mailman/listinfo/cfe-commits" target="_blank">http://lists.cs.uiuc.edu/mailman/listinfo/cfe-commits</a><br>
<br></blockquote></div><br></div></div>