Commit Graph

10 Commits

Author SHA1 Message Date
Hubert Tong 3041a6d40d Use POSIX argument syntax in test rewrite-includes-messages.c
Invoke diff such that options precede operands. Not doing so leads to
unspecified behaviour under the LSB.


git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@321830 91177308-0d34-0410-b5e6-96231b3b80d8
2018-01-04 23:03:48 +00:00
Alp Toker 7d78fb0b8b Revert "clang/test/Driver/crash-report.c: This requires rewriter for -frewrite-includes. [PR20321]"
We've decided to make the core rewriter class and PP rewriters mandatory.
They're only a few hundred lines of code in total and not worth supporting as a
distinct build configuration, especially since doing so disables key compiler
features.

This reverts commit r213150.

Revert "clang/test: Introduce the feature "rewriter" for --enable-clang-rewriter."

This reverts commit r213148.

Revert "Move clang/test/Frontend/rewrite-*.c to clang/test/Frontend/Rewriter/"

This reverts commit r213146.

git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@213159 91177308-0d34-0410-b5e6-96231b3b80d8
2014-07-16 15:12:48 +00:00
NAKAMURA Takumi 50ff53f4f3 Move clang/test/Frontend/rewrite-*.c to clang/test/Frontend/Rewriter/
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@213146 91177308-0d34-0410-b5e6-96231b3b80d8
2014-07-16 13:23:13 +00:00
Lubos Lunak fc4510c523 -fsyntax-only for a test
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@207814 91177308-0d34-0410-b5e6-96231b3b80d8
2014-05-01 23:58:20 +00:00
Reid Kleckner 07c24b8abf Use %clang_cc1 in rewrite-includes-messages.c test and drop REQUIRES: shell
This test passes on Windows with lit's shell interpreter.

git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@207810 91177308-0d34-0410-b5e6-96231b3b80d8
2014-05-01 22:45:16 +00:00
Lubos Lunak 66a40c9b84 do not hide clang stderr output during a test
I don't know why this fails on the buildbot.



git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@207808 91177308-0d34-0410-b5e6-96231b3b80d8
2014-05-01 22:40:00 +00:00
Lubos Lunak 177caa37f8 use 'diff' rather than 'cmp -s' in a test
That's what all tests use, no idea where I got the latter from.



git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@207797 91177308-0d34-0410-b5e6-96231b3b80d8
2014-05-01 21:36:08 +00:00
Lubos Lunak 957f4a25f6 write a line marker right before adding included file
Enclosing the original #include directive inside #if 0 adds lines,
so warning/errors messages would have the line number off in
"In file included from <file>:<line>:", so add line marker to fix this.



git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@207795 91177308-0d34-0410-b5e6-96231b3b80d8
2014-05-01 21:11:57 +00:00
Lubos Lunak 02a0ec22e7 revert r207756
There's nothing wrong with the change itself, but
test/Frontend/rewrite-includes-messages.c fails without another
not-yet-committed fix.



git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@207762 91177308-0d34-0410-b5e6-96231b3b80d8
2014-05-01 13:37:55 +00:00
Lubos Lunak 40dd1a0520 write a line marker right before adding included file
Enclosing the original #include directive inside #if 0 adds lines,
so warning/errors messages would have the line number off in
"In file included from <file>:<line>:", so add line marker to fix this.



git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@207756 91177308-0d34-0410-b5e6-96231b3b80d8
2014-05-01 12:45:08 +00:00