On Tue, Nov 19, 2013 at 1:04 AM, Manuel Klimek <[email protected]> wrote:
> On Tue, Nov 19, 2013 at 3:25 AM, Bill Wendling <[email protected]> wrote: > >> Author: void >> Date: Mon Nov 18 20:25:28 2013 >> New Revision: 195080 >> >> URL: http://llvm.org/viewvc/llvm-project?rev=195080&view=rev >> Log: >> Disable this check temporarily. >> >> This is failing for me. When I run the command on my own, I get this: >> >> Error reading >> /usr/local/google/home/morbo/llvm/llvm.obj/tools/clang/test/Format/Output/.clang-format: >> Invalid argument >> void f() { >> int* i; >> int j; >> } >> >> The formatting is like this because I have the Google format version in my >> ~/.clang-format file. This test should be made independent of that. >> > > 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? > 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. > > >> >> Modified: >> cfe/trunk/test/Format/style-on-command-line.cpp >> >> Modified: cfe/trunk/test/Format/style-on-command-line.cpp >> URL: >> http://llvm.org/viewvc/llvm-project/cfe/trunk/test/Format/style-on-command-line.cpp?rev=195080&r1=195079&r2=195080&view=diff >> >> ============================================================================== >> --- cfe/trunk/test/Format/style-on-command-line.cpp (original) >> +++ cfe/trunk/test/Format/style-on-command-line.cpp Mon Nov 18 20:25:28 >> 2013 >> @@ -22,7 +22,7 @@ void f() { >> // CHECK4: {{^ int \*i;$}} >> // CHECK5: {{^ int\* i;$}} >> // CHECK6: {{^Error reading .*\.clang-format: Invalid argument}} >> -// CHECK6: {{^ int \*i;$}} >> +// XCHECK6X: {{^ int \*i;$}} >> // CHECK7: {{^ int\* i;$}} >> int*i; >> int j; >> >> >> _______________________________________________ >> cfe-commits mailing list >> [email protected] >> http://lists.cs.uiuc.edu/mailman/listinfo/cfe-commits >> > > > _______________________________________________ > cfe-commits mailing list > [email protected] > http://lists.cs.uiuc.edu/mailman/listinfo/cfe-commits > >
_______________________________________________ cfe-commits mailing list [email protected] http://lists.cs.uiuc.edu/mailman/listinfo/cfe-commits
