<html><head><meta http-equiv="Content-Type" content="text/html charset=windows-1252"></head><body style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space;">On Nov 20, 2013, at 5:28 PM, Daniel Jasper <<a href="mailto:djasper@google.com">djasper@google.com</a>> wrote:<br><div><br class="Apple-interchange-newline"><blockquote type="cite"><div dir="ltr">On Tue, Nov 19, 2013 at 1:04 AM, Manuel Klimek <span dir="ltr"><<a href="mailto:klimek@google.com" target="_blank" class="cremed">klimek@google.com</a>></span> wrote:<br><div class="gmail_extra"><div class="gmail_quote">
<blockquote class="gmail_quote" style="margin: 0px 0px 0px 0.8ex; border-left-width: 1px; border-left-color: rgb(204, 204, 204); border-left-style: solid; padding-left: 1ex; position: static; z-index: auto;"><div dir="ltr"><div class="im">On Tue, Nov 19, 2013 at 3:25 AM, Bill Wendling <span dir="ltr"><<a href="mailto:isanbard@gmail.com" target="_blank" class="cremed">isanbard@gmail.com</a>></span> wrote:<br>
</div><div class="gmail_extra"><div class="gmail_quote"><div class="im">
<blockquote class="gmail_quote" style="margin: 0px 0px 0px 0.8ex; border-left-width: 1px; border-left-color: rgb(204, 204, 204); border-left-style: solid; padding-left: 1ex; position: static; z-index: auto;">Author: void<br>
Date: Mon Nov 18 20:25:28 2013<br>
New Revision: 195080<br>
<br>
URL: <a href="http://llvm.org/viewvc/llvm-project?rev=195080&view=rev" target="_blank" class="cremed">http://llvm.org/viewvc/llvm-project?rev=195080&view=rev</a><br>
Log:<br>
Disable this check temporarily.<br>
<br>
This is failing for me. When I run the command on my own, I get this:<br>
<br>
Error reading /usr/local/google/home/morbo/llvm/llvm.obj/tools/clang/test/Format/Output/.clang-format: Invalid argument<br>
void f() {<br>
  int* i;<br>
  int j;<br>
}<br>
<br>
The formatting is like this because I have the Google format version in my<br>
~/.clang-format file. This test should be made independent of that.<br></blockquote><div><br></div></div><div>That should already be independent, as there's a cfe/trunk/test/.clang-format file checked in, which clang-format should find (exactly for that reason). So you're saying that file exists, but clang-format still picks up the one from your home dir?</div>
</div></div></div></blockquote><div><br></div><div>He is doing an out-of-tree build and the formatted file is actually written to the build-tree (which doesn't have any .clang-format files). We also cannot use "-assume-filename" as that option currently only works when the input comes from stdin.</div>
</div></div></div></blockquote><div><br></div><div>What Daniel said. :-) If the ‘-assume-filename’ will fix this, then you could output the code to a temp file maybe?</div><div><br></div><div>-bw</div></div><br></body></html>