Revert "clang/test/Driver/crash-report.c: This requires rewriter for -frewrite-includ...
authorAlp Toker <alp@nuanti.com>
Wed, 16 Jul 2014 15:12:48 +0000 (15:12 +0000)
committerAlp Toker <alp@nuanti.com>
Wed, 16 Jul 2014 15:12:48 +0000 (15:12 +0000)
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.

llvm-svn: 213159

45 files changed:
clang/test/CXX/basic/basic.start/basic.start.main/p2.cpp
clang/test/CXX/temp/temp.spec/cxx1y-variable-template-no-body.cpp
clang/test/CXX/temp/temp.spec/no-body.cpp
clang/test/Coverage/html-print.c
clang/test/Driver/crash-report.c
clang/test/Format/lit.local.cfg [deleted file]
clang/test/Frontend/Inputs/rewrite-includes-bom.h [moved from clang/test/Frontend/Rewriter/Inputs/rewrite-includes-bom.h with 100% similarity]
clang/test/Frontend/Inputs/rewrite-includes-messages.h [moved from clang/test/Frontend/Rewriter/Inputs/rewrite-includes-messages.h with 100% similarity]
clang/test/Frontend/Inputs/rewrite-includes1.h [moved from clang/test/Frontend/Rewriter/Inputs/rewrite-includes1.h with 100% similarity]
clang/test/Frontend/Inputs/rewrite-includes2.h [moved from clang/test/Frontend/Rewriter/Inputs/rewrite-includes2.h with 100% similarity]
clang/test/Frontend/Inputs/rewrite-includes3.h [moved from clang/test/Frontend/Rewriter/Inputs/rewrite-includes3.h with 100% similarity]
clang/test/Frontend/Inputs/rewrite-includes4.h [moved from clang/test/Frontend/Rewriter/Inputs/rewrite-includes4.h with 100% similarity]
clang/test/Frontend/Inputs/rewrite-includes5.h [moved from clang/test/Frontend/Rewriter/Inputs/rewrite-includes5.h with 100% similarity]
clang/test/Frontend/Inputs/rewrite-includes6.h [moved from clang/test/Frontend/Rewriter/Inputs/rewrite-includes6.h with 100% similarity]
clang/test/Frontend/Inputs/rewrite-includes7.h [moved from clang/test/Frontend/Rewriter/Inputs/rewrite-includes7.h with 100% similarity]
clang/test/Frontend/Inputs/rewrite-includes8.h [moved from clang/test/Frontend/Rewriter/Inputs/rewrite-includes8.h with 100% similarity]
clang/test/Frontend/Rewriter/lit.local.cfg [deleted file]
clang/test/Frontend/rewrite-includes-bom.c [moved from clang/test/Frontend/Rewriter/rewrite-includes-bom.c with 100% similarity]
clang/test/Frontend/rewrite-includes-cli-include.c [moved from clang/test/Frontend/Rewriter/rewrite-includes-cli-include.c with 100% similarity]
clang/test/Frontend/rewrite-includes-eof.c [moved from clang/test/Frontend/Rewriter/rewrite-includes-eof.c with 100% similarity]
clang/test/Frontend/rewrite-includes-header-cmd-line.c [moved from clang/test/Frontend/Rewriter/rewrite-includes-header-cmd-line.c with 100% similarity]
clang/test/Frontend/rewrite-includes-invalid-hasinclude.c [moved from clang/test/Frontend/Rewriter/rewrite-includes-invalid-hasinclude.c with 100% similarity]
clang/test/Frontend/rewrite-includes-messages.c [moved from clang/test/Frontend/Rewriter/rewrite-includes-messages.c with 100% similarity]
clang/test/Frontend/rewrite-includes-missing.c [moved from clang/test/Frontend/Rewriter/rewrite-includes-missing.c with 100% similarity]
clang/test/Frontend/rewrite-includes-modules.c [moved from clang/test/Frontend/Rewriter/rewrite-includes-modules.c with 92% similarity]
clang/test/Frontend/rewrite-includes-warnings.c [moved from clang/test/Frontend/Rewriter/rewrite-includes-warnings.c with 100% similarity]
clang/test/Frontend/rewrite-includes.c [moved from clang/test/Frontend/Rewriter/rewrite-includes.c with 100% similarity]
clang/test/Frontend/rewrite-macros.c [moved from clang/test/Frontend/Rewriter/rewrite-macros.c with 100% similarity]
clang/test/Misc/emit-html-insert.c
clang/test/Misc/emit-html.c
clang/test/Parser/brackets.c
clang/test/Parser/brackets.cpp
clang/test/Parser/colon-colon-parentheses.cpp
clang/test/Parser/cxx-extra-semi.cpp
clang/test/Parser/nested-namespaces-recovery.cpp
clang/test/Preprocessor/ignore-pragmas.c
clang/test/Sema/format-strings-fixit-ssize_t.c
clang/test/Sema/format-strings-fixit.c
clang/test/Sema/format-strings-no-fixit.c
clang/test/Sema/warn-documentation-almost-trailing.c
clang/test/Sema/warn-strncat-size.c
clang/test/SemaCXX/delete.cpp
clang/test/SemaObjC/cocoa-api-usage.m
clang/test/SemaObjC/cocoa-api-usage.m.fixed
clang/test/lit.cfg

index b3e171f..42e87e5 100644 (file)
@@ -10,7 +10,6 @@
 // RUN: cp %s %t
 // RUN: %clang_cc1 -x c++ %s -std=c++11 -fsyntax-only -verify -DTEST9
 // RUN: not %clang_cc1 -x c++ %t -std=c++11 -fixit -DTEST9
-// REQUIRES: rewriter
 // RUN: %clang_cc1 -x c++ %t -std=c++11 -fsyntax-only -DTEST9
 
 // RUN: %clang_cc1 -fsyntax-only -verify %s -DTEST10
index 3b54a8c..7eb5e37 100644 (file)
@@ -2,7 +2,6 @@
 // RUN: cp %s %t
 // RUN: not %clang_cc1 --std=c++1y -x c++ -fixit %t -DFIXING
 // RUN: %clang_cc1 --std=c++1y -x c++ %t -DFIXING
-// REQUIRES: rewriter
 
 template<typename T> 
 T pi = T(3.1415926535897932385); // expected-note {{template is declared here}}
index aa2380d..61d285b 100644 (file)
@@ -2,7 +2,6 @@
 // RUN: cp %s %t
 // RUN: not %clang_cc1 -x c++ -fixit %t -DFIXING
 // RUN: %clang_cc1 -x c++ %t -DFIXING
-// REQUIRES: rewriter
 
 template<typename T> void f(T) { }
 template<typename T> void g(T) { }
index 2bbe0ad..a3f29c6 100644 (file)
@@ -1,6 +1,3 @@
 // RUN: %clang_cc1 -emit-html -o %t %s
 
-// -emit-html requires rewriter.
-// REQUIRES: rewriter
-
 #include "c-language-features.inc"
index caee728..da1ff95 100644 (file)
@@ -10,9 +10,6 @@
 // RUN: cat %t/crash-report-*.sh | FileCheck --check-prefix=CHECKSH %s
 // REQUIRES: crash-recovery
 
-// PR20321: diag invokes clang -E with -frewrite-includes.
-// REQUIRES: rewriter
-
 // because of the glob (*.c, *.sh)
 // REQUIRES: shell
 
diff --git a/clang/test/Format/lit.local.cfg b/clang/test/Format/lit.local.cfg
deleted file mode 100644 (file)
index 5bbc711..0000000
+++ /dev/null
@@ -1,2 +0,0 @@
-if config.root.clang_rewriter == 0:
-    config.unsupported = True
diff --git a/clang/test/Frontend/Rewriter/lit.local.cfg b/clang/test/Frontend/Rewriter/lit.local.cfg
deleted file mode 100644 (file)
index 5bbc711..0000000
+++ /dev/null
@@ -1,2 +0,0 @@
-if config.root.clang_rewriter == 0:
-    config.unsupported = True
@@ -1,5 +1,5 @@
 // RUN: rm -rf %t
-// RUN: %clang_cc1 -fmodules -fmodules-cache-path=%t -x objective-c %s -F %S/../../Modules/Inputs -E -frewrite-includes -o - | FileCheck %s
+// RUN: %clang_cc1 -fmodules -fmodules-cache-path=%t -x objective-c %s -F %S/../Modules/Inputs -E -frewrite-includes -o - | FileCheck %s
 
 int bar();
 #include <Module/Module.h>
index fcd3652..289c28a 100644 (file)
@@ -1,5 +1,4 @@
 // RUN: %clang_cc1 %s -emit-html -o - | grep ">&lt; 10; }"
-// REQUIRES: rewriter
 
 int a(int x) { return x
 < 10; }
index f8042f4..ec07a60 100644 (file)
@@ -1,5 +1,4 @@
 // RUN: %clang_cc1 %s -emit-html -o -
-// REQUIRES: rewriter
 
 // rdar://6562329
 #line 42 "foo.c"
index 67ea423..2750d0e 100644 (file)
@@ -3,7 +3,6 @@
 // RUN: not %clang_cc1 -fixit %t -x c -DFIXIT
 // RUN: %clang_cc1 -fsyntax-only %t -x c -DFIXIT
 // RUN: not %clang_cc1 -fsyntax-only -fdiagnostics-parseable-fixits %s 2>&1 | FileCheck %s -strict-whitespace
-// REQUIRES: rewriter
 
 void test1() {
   int a[] = {0,1,1,2,3};
index 128b514..f418c11 100644 (file)
@@ -3,7 +3,6 @@
 // RUN: not %clang_cc1 -fixit %t -x c++ -DFIXIT
 // RUN: %clang_cc1 -fsyntax-only %t -x c++ -DFIXIT
 // RUN: not %clang_cc1 -fsyntax-only -fdiagnostics-parseable-fixits %s 2>&1 | FileCheck %s -strict-whitespace
-// REQUIRES: rewriter
 
 void test1() {
   int a[] = {0,1,1,2,3};
index dc9aa7a..55948fd 100644 (file)
@@ -2,7 +2,6 @@
 // RUN: cp %s %t
 // RUN: not %clang_cc1 -x c++ -fixit %t
 // RUN: %clang_cc1 -x c++ %t
-// REQUIRES: rewriter
 
 struct S { static int a,b,c;};
 int S::(a);  // expected-error{{unexpected parenthesis after '::'}}
index 1bc0a82..2aa18df 100644 (file)
@@ -4,7 +4,6 @@
 // RUN: cp %s %t
 // RUN: %clang_cc1 -x c++ -Wextra-semi -fixit %t
 // RUN: %clang_cc1 -x c++ -Wextra-semi -Werror %t
-// REQUIRES: rewriter
 
 class A {
   void A1();
index f751180..d45938b 100644 (file)
@@ -2,7 +2,6 @@
 // RUN: %clang_cc1 -fsyntax-only -verify %s
 // RUN: not %clang_cc1 -x c++ -fixit %t
 // RUN: %clang_cc1 -x c++ %t
-// REQUIRES: rewriter
 
 namespace foo1::foo2::foo3 { // expected-error {{nested namespace definition must define each namespace separately}}
   int foo(int x) { return x; }
index 3226d53..e2f9ef3 100644 (file)
@@ -3,7 +3,6 @@
 // RUN: %clang -M -Wall %s -Xclang -verify
 // RUN: %clang -E -frewrite-includes %s -Wall -Xclang -verify
 // RUN: %clang -E -dD -dM %s -Wall -Xclang -verify
-// REQUIRES: rewriter
 // expected-no-diagnostics
 
 #pragma GCC visibility push (default)
index 6e8e49b..5208a29 100644 (file)
@@ -2,7 +2,6 @@
 // RUN: %clang_cc1 -triple x86_64-apple-darwin10 -pedantic -Wall -fixit %t
 // RUN: %clang_cc1 -triple x86_64-apple-darwin10 -fsyntax-only -pedantic -Wall -Werror %t
 // RUN: %clang_cc1 -triple x86_64-apple-darwin10 -E -o - %t | FileCheck %s
-// REQUIRES: rewriter
 
 /* This is a test of the various code modification hints that are
    provided as part of warning or extension diagnostics. All of the
index 098c7e0..b982eb4 100644 (file)
@@ -2,7 +2,6 @@
 // RUN: %clang_cc1 -pedantic -Wall -fixit %t
 // RUN: %clang_cc1 -fsyntax-only -pedantic -Wall -Werror %t
 // RUN: %clang_cc1 -E -o - %t | FileCheck %s
-// REQUIRES: rewriter
 
 /* This is a test of the various code modification hints that are
    provided as part of warning or extension diagnostics. All of the
index 7371fde..701e945 100644 (file)
@@ -1,7 +1,6 @@
 // RUN: cp %s %t
 // RUN: %clang_cc1 -fsyntax-only -fixit %t
 // RUN: %clang_cc1 -E -o - %t | FileCheck %s
-// REQUIRES: rewriter
 
 /* This is a test of the various code modification hints that are
    provided as part of warning or extension diagnostics. Only
index e3dee29..9ff71a3 100644 (file)
@@ -3,7 +3,6 @@
 // RUN: cp %s %t
 // RUN: %clang_cc1 -fsyntax-only -Wdocumentation -fixit %t
 // RUN: %clang_cc1 -fsyntax-only -Wdocumentation -Werror %t
-// REQUIRES: rewriter
 
 struct a {
   int x; //< comment // expected-warning {{not a Doxygen trailing comment}}
index 0b74b21..dcc3367 100644 (file)
@@ -2,7 +2,6 @@
 // RUN: %clang_cc1 -DUSE_BUILTINS -Wstrncat-size -verify -fsyntax-only %s
 // RUN: %clang_cc1 -fsyntax-only -Wstrncat-size -fixit -x c %s
 // RUN: %clang_cc1 -DUSE_BUILTINS -fsyntax-only -Wstrncat-size -fixit -x c %s
-// REQUIRES: rewriter
 
 typedef __SIZE_TYPE__ size_t;
 size_t strlen (const char *s);
index 6afdaf1..5824fac 100644 (file)
@@ -2,7 +2,6 @@
 // RUN: cp %s %t
 // RUN: %clang_cc1 -fixit -x c++ %t
 // RUN: %clang_cc1 -E -o - %t | FileCheck %s
-// REQUIRES: rewriter
 
 void f(int a[10][20]) {
   // CHECK: delete[] a;
index 9e287bf..bed7ecd 100644 (file)
@@ -3,7 +3,6 @@
 // RUN: cp %s %t.m
 // RUN: %clang_cc1 -triple x86_64-apple-darwin10 -fobjc-arc %t.m -fixit -Wobjc-cocoa-api
 // RUN: diff %s.fixed %t.m
-// REQUIRES: rewriter
 
 typedef signed char BOOL;
 #define nil ((void*) 0)
index a27e4ee..f472cf1 100644 (file)
@@ -3,7 +3,6 @@
 // RUN: cp %s %t.m
 // RUN: %clang_cc1 -triple x86_64-apple-darwin10 -fobjc-arc %t.m -fixit -Wobjc-cocoa-api
 // RUN: diff %s.fixed %t.m
-// REQUIRES: rewriter
 
 typedef signed char BOOL;
 #define nil ((void*) 0)
index bbc5c99..b5c5628 100644 (file)
@@ -335,9 +335,6 @@ for pattern in [r"\bFileCheck\b",
 # Set available features we allow tests to conditionalize on.
 #
 # Enabled/disabled features
-if config.clang_rewriter != 0:
-    config.available_features.add("rewriter")
-
 if config.clang_staticanalyzer != 0:
     config.available_features.add("staticanalyzer")