r213159 - Revert "clang/test/Driver/crash-report.c: This requires rewriter for -frewrite-includes. [PR20321]"
Alp Toker
alp at nuanti.com
Wed Jul 16 08:12:56 PDT 2014
Author: alp
Date: Wed Jul 16 10:12:48 2014
New Revision: 213159
URL: http://llvm.org/viewvc/llvm-project?rev=213159&view=rev
Log:
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.
Added:
cfe/trunk/test/Frontend/Inputs/rewrite-includes-bom.h
- copied, changed from r213152, cfe/trunk/test/Frontend/Rewriter/Inputs/rewrite-includes-bom.h
cfe/trunk/test/Frontend/Inputs/rewrite-includes-messages.h
- copied, changed from r213152, cfe/trunk/test/Frontend/Rewriter/Inputs/rewrite-includes-messages.h
cfe/trunk/test/Frontend/Inputs/rewrite-includes1.h
- copied, changed from r213152, cfe/trunk/test/Frontend/Rewriter/Inputs/rewrite-includes1.h
cfe/trunk/test/Frontend/Inputs/rewrite-includes2.h
- copied, changed from r213152, cfe/trunk/test/Frontend/Rewriter/Inputs/rewrite-includes2.h
cfe/trunk/test/Frontend/Inputs/rewrite-includes3.h
- copied, changed from r213152, cfe/trunk/test/Frontend/Rewriter/Inputs/rewrite-includes3.h
cfe/trunk/test/Frontend/Inputs/rewrite-includes4.h
- copied, changed from r213152, cfe/trunk/test/Frontend/Rewriter/Inputs/rewrite-includes4.h
cfe/trunk/test/Frontend/Inputs/rewrite-includes5.h
- copied, changed from r213152, cfe/trunk/test/Frontend/Rewriter/Inputs/rewrite-includes5.h
cfe/trunk/test/Frontend/Inputs/rewrite-includes6.h
- copied, changed from r213152, cfe/trunk/test/Frontend/Rewriter/Inputs/rewrite-includes6.h
cfe/trunk/test/Frontend/Inputs/rewrite-includes7.h
- copied, changed from r213152, cfe/trunk/test/Frontend/Rewriter/Inputs/rewrite-includes7.h
cfe/trunk/test/Frontend/Inputs/rewrite-includes8.h
- copied, changed from r213152, cfe/trunk/test/Frontend/Rewriter/Inputs/rewrite-includes8.h
cfe/trunk/test/Frontend/rewrite-includes-bom.c
- copied, changed from r213152, cfe/trunk/test/Frontend/Rewriter/rewrite-includes-bom.c
cfe/trunk/test/Frontend/rewrite-includes-cli-include.c
- copied, changed from r213152, cfe/trunk/test/Frontend/Rewriter/rewrite-includes-cli-include.c
cfe/trunk/test/Frontend/rewrite-includes-eof.c
- copied, changed from r213152, cfe/trunk/test/Frontend/Rewriter/rewrite-includes-eof.c
cfe/trunk/test/Frontend/rewrite-includes-header-cmd-line.c
- copied, changed from r213152, cfe/trunk/test/Frontend/Rewriter/rewrite-includes-header-cmd-line.c
cfe/trunk/test/Frontend/rewrite-includes-invalid-hasinclude.c
- copied, changed from r213152, cfe/trunk/test/Frontend/Rewriter/rewrite-includes-invalid-hasinclude.c
cfe/trunk/test/Frontend/rewrite-includes-messages.c
- copied, changed from r213152, cfe/trunk/test/Frontend/Rewriter/rewrite-includes-messages.c
cfe/trunk/test/Frontend/rewrite-includes-missing.c
- copied, changed from r213152, cfe/trunk/test/Frontend/Rewriter/rewrite-includes-missing.c
cfe/trunk/test/Frontend/rewrite-includes-modules.c
- copied, changed from r213152, cfe/trunk/test/Frontend/Rewriter/rewrite-includes-modules.c
cfe/trunk/test/Frontend/rewrite-includes-warnings.c
- copied, changed from r213152, cfe/trunk/test/Frontend/Rewriter/rewrite-includes-warnings.c
cfe/trunk/test/Frontend/rewrite-includes.c
- copied, changed from r213152, cfe/trunk/test/Frontend/Rewriter/rewrite-includes.c
cfe/trunk/test/Frontend/rewrite-macros.c
- copied, changed from r213152, cfe/trunk/test/Frontend/Rewriter/rewrite-macros.c
Removed:
cfe/trunk/test/Format/lit.local.cfg
cfe/trunk/test/Frontend/Rewriter/Inputs/rewrite-includes-bom.h
cfe/trunk/test/Frontend/Rewriter/Inputs/rewrite-includes-messages.h
cfe/trunk/test/Frontend/Rewriter/Inputs/rewrite-includes1.h
cfe/trunk/test/Frontend/Rewriter/Inputs/rewrite-includes2.h
cfe/trunk/test/Frontend/Rewriter/Inputs/rewrite-includes3.h
cfe/trunk/test/Frontend/Rewriter/Inputs/rewrite-includes4.h
cfe/trunk/test/Frontend/Rewriter/Inputs/rewrite-includes5.h
cfe/trunk/test/Frontend/Rewriter/Inputs/rewrite-includes6.h
cfe/trunk/test/Frontend/Rewriter/Inputs/rewrite-includes7.h
cfe/trunk/test/Frontend/Rewriter/Inputs/rewrite-includes8.h
cfe/trunk/test/Frontend/Rewriter/lit.local.cfg
cfe/trunk/test/Frontend/Rewriter/rewrite-includes-bom.c
cfe/trunk/test/Frontend/Rewriter/rewrite-includes-cli-include.c
cfe/trunk/test/Frontend/Rewriter/rewrite-includes-eof.c
cfe/trunk/test/Frontend/Rewriter/rewrite-includes-header-cmd-line.c
cfe/trunk/test/Frontend/Rewriter/rewrite-includes-invalid-hasinclude.c
cfe/trunk/test/Frontend/Rewriter/rewrite-includes-messages.c
cfe/trunk/test/Frontend/Rewriter/rewrite-includes-missing.c
cfe/trunk/test/Frontend/Rewriter/rewrite-includes-modules.c
cfe/trunk/test/Frontend/Rewriter/rewrite-includes-warnings.c
cfe/trunk/test/Frontend/Rewriter/rewrite-includes.c
cfe/trunk/test/Frontend/Rewriter/rewrite-macros.c
Modified:
cfe/trunk/test/CXX/basic/basic.start/basic.start.main/p2.cpp
cfe/trunk/test/CXX/temp/temp.spec/cxx1y-variable-template-no-body.cpp
cfe/trunk/test/CXX/temp/temp.spec/no-body.cpp
cfe/trunk/test/Coverage/html-print.c
cfe/trunk/test/Driver/crash-report.c
cfe/trunk/test/Misc/emit-html-insert.c
cfe/trunk/test/Misc/emit-html.c
cfe/trunk/test/Parser/brackets.c
cfe/trunk/test/Parser/brackets.cpp
cfe/trunk/test/Parser/colon-colon-parentheses.cpp
cfe/trunk/test/Parser/cxx-extra-semi.cpp
cfe/trunk/test/Parser/nested-namespaces-recovery.cpp
cfe/trunk/test/Preprocessor/ignore-pragmas.c
cfe/trunk/test/Sema/format-strings-fixit-ssize_t.c
cfe/trunk/test/Sema/format-strings-fixit.c
cfe/trunk/test/Sema/format-strings-no-fixit.c
cfe/trunk/test/Sema/warn-documentation-almost-trailing.c
cfe/trunk/test/Sema/warn-strncat-size.c
cfe/trunk/test/SemaCXX/delete.cpp
cfe/trunk/test/SemaObjC/cocoa-api-usage.m
cfe/trunk/test/SemaObjC/cocoa-api-usage.m.fixed
cfe/trunk/test/lit.cfg
Modified: cfe/trunk/test/CXX/basic/basic.start/basic.start.main/p2.cpp
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/test/CXX/basic/basic.start/basic.start.main/p2.cpp?rev=213159&r1=213158&r2=213159&view=diff
==============================================================================
--- cfe/trunk/test/CXX/basic/basic.start/basic.start.main/p2.cpp (original)
+++ cfe/trunk/test/CXX/basic/basic.start/basic.start.main/p2.cpp Wed Jul 16 10:12:48 2014
@@ -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
Modified: cfe/trunk/test/CXX/temp/temp.spec/cxx1y-variable-template-no-body.cpp
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/test/CXX/temp/temp.spec/cxx1y-variable-template-no-body.cpp?rev=213159&r1=213158&r2=213159&view=diff
==============================================================================
--- cfe/trunk/test/CXX/temp/temp.spec/cxx1y-variable-template-no-body.cpp (original)
+++ cfe/trunk/test/CXX/temp/temp.spec/cxx1y-variable-template-no-body.cpp Wed Jul 16 10:12:48 2014
@@ -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}}
Modified: cfe/trunk/test/CXX/temp/temp.spec/no-body.cpp
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/test/CXX/temp/temp.spec/no-body.cpp?rev=213159&r1=213158&r2=213159&view=diff
==============================================================================
--- cfe/trunk/test/CXX/temp/temp.spec/no-body.cpp (original)
+++ cfe/trunk/test/CXX/temp/temp.spec/no-body.cpp Wed Jul 16 10:12:48 2014
@@ -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) { }
Modified: cfe/trunk/test/Coverage/html-print.c
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/test/Coverage/html-print.c?rev=213159&r1=213158&r2=213159&view=diff
==============================================================================
--- cfe/trunk/test/Coverage/html-print.c (original)
+++ cfe/trunk/test/Coverage/html-print.c Wed Jul 16 10:12:48 2014
@@ -1,6 +1,3 @@
// RUN: %clang_cc1 -emit-html -o %t %s
-// -emit-html requires rewriter.
-// REQUIRES: rewriter
-
#include "c-language-features.inc"
Modified: cfe/trunk/test/Driver/crash-report.c
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/test/Driver/crash-report.c?rev=213159&r1=213158&r2=213159&view=diff
==============================================================================
--- cfe/trunk/test/Driver/crash-report.c (original)
+++ cfe/trunk/test/Driver/crash-report.c Wed Jul 16 10:12:48 2014
@@ -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
Removed: cfe/trunk/test/Format/lit.local.cfg
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/test/Format/lit.local.cfg?rev=213158&view=auto
==============================================================================
--- cfe/trunk/test/Format/lit.local.cfg (original)
+++ cfe/trunk/test/Format/lit.local.cfg (removed)
@@ -1,2 +0,0 @@
-if config.root.clang_rewriter == 0:
- config.unsupported = True
Copied: cfe/trunk/test/Frontend/Inputs/rewrite-includes-bom.h (from r213152, cfe/trunk/test/Frontend/Rewriter/Inputs/rewrite-includes-bom.h)
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/test/Frontend/Inputs/rewrite-includes-bom.h?p2=cfe/trunk/test/Frontend/Inputs/rewrite-includes-bom.h&p1=cfe/trunk/test/Frontend/Rewriter/Inputs/rewrite-includes-bom.h&r1=213152&r2=213159&rev=213159&view=diff
==============================================================================
(empty)
Copied: cfe/trunk/test/Frontend/Inputs/rewrite-includes-messages.h (from r213152, cfe/trunk/test/Frontend/Rewriter/Inputs/rewrite-includes-messages.h)
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/test/Frontend/Inputs/rewrite-includes-messages.h?p2=cfe/trunk/test/Frontend/Inputs/rewrite-includes-messages.h&p1=cfe/trunk/test/Frontend/Rewriter/Inputs/rewrite-includes-messages.h&r1=213152&r2=213159&rev=213159&view=diff
==============================================================================
(empty)
Copied: cfe/trunk/test/Frontend/Inputs/rewrite-includes1.h (from r213152, cfe/trunk/test/Frontend/Rewriter/Inputs/rewrite-includes1.h)
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/test/Frontend/Inputs/rewrite-includes1.h?p2=cfe/trunk/test/Frontend/Inputs/rewrite-includes1.h&p1=cfe/trunk/test/Frontend/Rewriter/Inputs/rewrite-includes1.h&r1=213152&r2=213159&rev=213159&view=diff
==============================================================================
(empty)
Copied: cfe/trunk/test/Frontend/Inputs/rewrite-includes2.h (from r213152, cfe/trunk/test/Frontend/Rewriter/Inputs/rewrite-includes2.h)
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/test/Frontend/Inputs/rewrite-includes2.h?p2=cfe/trunk/test/Frontend/Inputs/rewrite-includes2.h&p1=cfe/trunk/test/Frontend/Rewriter/Inputs/rewrite-includes2.h&r1=213152&r2=213159&rev=213159&view=diff
==============================================================================
(empty)
Copied: cfe/trunk/test/Frontend/Inputs/rewrite-includes3.h (from r213152, cfe/trunk/test/Frontend/Rewriter/Inputs/rewrite-includes3.h)
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/test/Frontend/Inputs/rewrite-includes3.h?p2=cfe/trunk/test/Frontend/Inputs/rewrite-includes3.h&p1=cfe/trunk/test/Frontend/Rewriter/Inputs/rewrite-includes3.h&r1=213152&r2=213159&rev=213159&view=diff
==============================================================================
(empty)
Copied: cfe/trunk/test/Frontend/Inputs/rewrite-includes4.h (from r213152, cfe/trunk/test/Frontend/Rewriter/Inputs/rewrite-includes4.h)
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/test/Frontend/Inputs/rewrite-includes4.h?p2=cfe/trunk/test/Frontend/Inputs/rewrite-includes4.h&p1=cfe/trunk/test/Frontend/Rewriter/Inputs/rewrite-includes4.h&r1=213152&r2=213159&rev=213159&view=diff
==============================================================================
(empty)
Copied: cfe/trunk/test/Frontend/Inputs/rewrite-includes5.h (from r213152, cfe/trunk/test/Frontend/Rewriter/Inputs/rewrite-includes5.h)
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/test/Frontend/Inputs/rewrite-includes5.h?p2=cfe/trunk/test/Frontend/Inputs/rewrite-includes5.h&p1=cfe/trunk/test/Frontend/Rewriter/Inputs/rewrite-includes5.h&r1=213152&r2=213159&rev=213159&view=diff
==============================================================================
(empty)
Copied: cfe/trunk/test/Frontend/Inputs/rewrite-includes6.h (from r213152, cfe/trunk/test/Frontend/Rewriter/Inputs/rewrite-includes6.h)
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/test/Frontend/Inputs/rewrite-includes6.h?p2=cfe/trunk/test/Frontend/Inputs/rewrite-includes6.h&p1=cfe/trunk/test/Frontend/Rewriter/Inputs/rewrite-includes6.h&r1=213152&r2=213159&rev=213159&view=diff
==============================================================================
(empty)
Copied: cfe/trunk/test/Frontend/Inputs/rewrite-includes7.h (from r213152, cfe/trunk/test/Frontend/Rewriter/Inputs/rewrite-includes7.h)
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/test/Frontend/Inputs/rewrite-includes7.h?p2=cfe/trunk/test/Frontend/Inputs/rewrite-includes7.h&p1=cfe/trunk/test/Frontend/Rewriter/Inputs/rewrite-includes7.h&r1=213152&r2=213159&rev=213159&view=diff
==============================================================================
(empty)
Copied: cfe/trunk/test/Frontend/Inputs/rewrite-includes8.h (from r213152, cfe/trunk/test/Frontend/Rewriter/Inputs/rewrite-includes8.h)
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/test/Frontend/Inputs/rewrite-includes8.h?p2=cfe/trunk/test/Frontend/Inputs/rewrite-includes8.h&p1=cfe/trunk/test/Frontend/Rewriter/Inputs/rewrite-includes8.h&r1=213152&r2=213159&rev=213159&view=diff
==============================================================================
(empty)
Removed: cfe/trunk/test/Frontend/Rewriter/Inputs/rewrite-includes-bom.h
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/test/Frontend/Rewriter/Inputs/rewrite-includes-bom.h?rev=213158&view=auto
==============================================================================
--- cfe/trunk/test/Frontend/Rewriter/Inputs/rewrite-includes-bom.h (original)
+++ cfe/trunk/test/Frontend/Rewriter/Inputs/rewrite-includes-bom.h (removed)
@@ -1 +0,0 @@
-// This file starts with UTF-8 BOM marker.
Removed: cfe/trunk/test/Frontend/Rewriter/Inputs/rewrite-includes-messages.h
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/test/Frontend/Rewriter/Inputs/rewrite-includes-messages.h?rev=213158&view=auto
==============================================================================
--- cfe/trunk/test/Frontend/Rewriter/Inputs/rewrite-includes-messages.h (original)
+++ cfe/trunk/test/Frontend/Rewriter/Inputs/rewrite-includes-messages.h (removed)
@@ -1,4 +0,0 @@
-void f()
-{
- int unused_variable;
-}
Removed: cfe/trunk/test/Frontend/Rewriter/Inputs/rewrite-includes1.h
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/test/Frontend/Rewriter/Inputs/rewrite-includes1.h?rev=213158&view=auto
==============================================================================
--- cfe/trunk/test/Frontend/Rewriter/Inputs/rewrite-includes1.h (original)
+++ cfe/trunk/test/Frontend/Rewriter/Inputs/rewrite-includes1.h (removed)
@@ -1,3 +0,0 @@
-#pragma clang system_header
-included_line1
-#include "rewrite-includes2.h"
Removed: cfe/trunk/test/Frontend/Rewriter/Inputs/rewrite-includes2.h
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/test/Frontend/Rewriter/Inputs/rewrite-includes2.h?rev=213158&view=auto
==============================================================================
--- cfe/trunk/test/Frontend/Rewriter/Inputs/rewrite-includes2.h (original)
+++ cfe/trunk/test/Frontend/Rewriter/Inputs/rewrite-includes2.h (removed)
@@ -1 +0,0 @@
-included_line2
Removed: cfe/trunk/test/Frontend/Rewriter/Inputs/rewrite-includes3.h
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/test/Frontend/Rewriter/Inputs/rewrite-includes3.h?rev=213158&view=auto
==============================================================================
--- cfe/trunk/test/Frontend/Rewriter/Inputs/rewrite-includes3.h (original)
+++ cfe/trunk/test/Frontend/Rewriter/Inputs/rewrite-includes3.h (removed)
@@ -1 +0,0 @@
-included_line3
Removed: cfe/trunk/test/Frontend/Rewriter/Inputs/rewrite-includes4.h
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/test/Frontend/Rewriter/Inputs/rewrite-includes4.h?rev=213158&view=auto
==============================================================================
--- cfe/trunk/test/Frontend/Rewriter/Inputs/rewrite-includes4.h (original)
+++ cfe/trunk/test/Frontend/Rewriter/Inputs/rewrite-includes4.h (removed)
@@ -1 +0,0 @@
-included_line4
Removed: cfe/trunk/test/Frontend/Rewriter/Inputs/rewrite-includes5.h
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/test/Frontend/Rewriter/Inputs/rewrite-includes5.h?rev=213158&view=auto
==============================================================================
--- cfe/trunk/test/Frontend/Rewriter/Inputs/rewrite-includes5.h (original)
+++ cfe/trunk/test/Frontend/Rewriter/Inputs/rewrite-includes5.h (removed)
@@ -1 +0,0 @@
-included_line5
Removed: cfe/trunk/test/Frontend/Rewriter/Inputs/rewrite-includes6.h
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/test/Frontend/Rewriter/Inputs/rewrite-includes6.h?rev=213158&view=auto
==============================================================================
--- cfe/trunk/test/Frontend/Rewriter/Inputs/rewrite-includes6.h (original)
+++ cfe/trunk/test/Frontend/Rewriter/Inputs/rewrite-includes6.h (removed)
@@ -1,2 +0,0 @@
-#pragma once
-included_line6
Removed: cfe/trunk/test/Frontend/Rewriter/Inputs/rewrite-includes7.h
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/test/Frontend/Rewriter/Inputs/rewrite-includes7.h?rev=213158&view=auto
==============================================================================
--- cfe/trunk/test/Frontend/Rewriter/Inputs/rewrite-includes7.h (original)
+++ cfe/trunk/test/Frontend/Rewriter/Inputs/rewrite-includes7.h (removed)
@@ -1,4 +0,0 @@
-#ifndef REWRITE_INCLUDES_7
-#define REWRITE_INCLUDES_7
-included_line7
-#endif
Removed: cfe/trunk/test/Frontend/Rewriter/Inputs/rewrite-includes8.h
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/test/Frontend/Rewriter/Inputs/rewrite-includes8.h?rev=213158&view=auto
==============================================================================
--- cfe/trunk/test/Frontend/Rewriter/Inputs/rewrite-includes8.h (original)
+++ cfe/trunk/test/Frontend/Rewriter/Inputs/rewrite-includes8.h (removed)
@@ -1,5 +0,0 @@
-#if __has_include_next(<rewrite-includes8.h>)
-#elif __has_include(<rewrite-includes8.hfail>)
-#endif
-#if !__has_include("rewrite-includes8.h")
-#endif
Removed: cfe/trunk/test/Frontend/Rewriter/lit.local.cfg
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/test/Frontend/Rewriter/lit.local.cfg?rev=213158&view=auto
==============================================================================
--- cfe/trunk/test/Frontend/Rewriter/lit.local.cfg (original)
+++ cfe/trunk/test/Frontend/Rewriter/lit.local.cfg (removed)
@@ -1,2 +0,0 @@
-if config.root.clang_rewriter == 0:
- config.unsupported = True
Removed: cfe/trunk/test/Frontend/Rewriter/rewrite-includes-bom.c
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/test/Frontend/Rewriter/rewrite-includes-bom.c?rev=213158&view=auto
==============================================================================
--- cfe/trunk/test/Frontend/Rewriter/rewrite-includes-bom.c (original)
+++ cfe/trunk/test/Frontend/Rewriter/rewrite-includes-bom.c (removed)
@@ -1,8 +0,0 @@
-// RUN: grep -q $'^\xEF\xBB\xBF' %S/Inputs/rewrite-includes-bom.h
-// RUN: %clang_cc1 -E -frewrite-includes -I %S/Inputs %s -o %t.c
-// RUN: ! grep -q $'\xEF\xBB\xBF' %t.c
-// RUN: %clang_cc1 -fsyntax-only -verify %t.c
-// expected-no-diagnostics
-// REQUIRES: shell
-
-#include "rewrite-includes-bom.h"
Removed: cfe/trunk/test/Frontend/Rewriter/rewrite-includes-cli-include.c
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/test/Frontend/Rewriter/rewrite-includes-cli-include.c?rev=213158&view=auto
==============================================================================
--- cfe/trunk/test/Frontend/Rewriter/rewrite-includes-cli-include.c (original)
+++ cfe/trunk/test/Frontend/Rewriter/rewrite-includes-cli-include.c (removed)
@@ -1,9 +0,0 @@
-// RUN: not %clang_cc1 -verify -E -frewrite-includes -include %S/Inputs/rewrite-includes2.h %s -o - | FileCheck -strict-whitespace %s
-main_file_line
-// CHECK: {{^}}# 1 "<built-in>"{{$}}
-// CHECK-NEXT: {{^}}# 1 "{{.*[/\\]Inputs(/|\\\\)}}rewrite-includes2.h" 1{{$}}
-// CHECK-NEXT: {{^}}included_line2{{$}}
-// CHECK-NEXT: {{^}}# 1 "<built-in>" 2{{$}}
-// CHECK-NEXT: {{^}}# 1 "{{.*}}rewrite-includes-cli-include.c"{{$}}
-// CHECK-NEXT: FileCheck
-// CHECK-NEXT: {{^}}main_file_line{{$}}
Removed: cfe/trunk/test/Frontend/Rewriter/rewrite-includes-eof.c
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/test/Frontend/Rewriter/rewrite-includes-eof.c?rev=213158&view=auto
==============================================================================
--- cfe/trunk/test/Frontend/Rewriter/rewrite-includes-eof.c (original)
+++ cfe/trunk/test/Frontend/Rewriter/rewrite-includes-eof.c (removed)
@@ -1,4 +0,0 @@
-// RUN: %clang_cc1 -E -frewrite-includes -I %S/Inputs %s
-// expected-no-diagnostics
-// Note: there's no newline at the end of this C file.
-#include "rewrite-includes-bom.h"
\ No newline at end of file
Removed: cfe/trunk/test/Frontend/Rewriter/rewrite-includes-header-cmd-line.c
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/test/Frontend/Rewriter/rewrite-includes-header-cmd-line.c?rev=213158&view=auto
==============================================================================
--- cfe/trunk/test/Frontend/Rewriter/rewrite-includes-header-cmd-line.c (original)
+++ cfe/trunk/test/Frontend/Rewriter/rewrite-includes-header-cmd-line.c (removed)
@@ -1,7 +0,0 @@
-// RUN: %clang_cc1 -E -frewrite-includes -include rewrite-includes2.h -I %S/Inputs %s -o - | FileCheck -strict-whitespace %s
-
-// STARTMAIN
-
-// CHECK-NOT: {{^}}#define
-// CHECK: included_line2
-// CHECK: {{^}}// STARTMAIN{{$}}
Removed: cfe/trunk/test/Frontend/Rewriter/rewrite-includes-invalid-hasinclude.c
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/test/Frontend/Rewriter/rewrite-includes-invalid-hasinclude.c?rev=213158&view=auto
==============================================================================
--- cfe/trunk/test/Frontend/Rewriter/rewrite-includes-invalid-hasinclude.c (original)
+++ cfe/trunk/test/Frontend/Rewriter/rewrite-includes-invalid-hasinclude.c (removed)
@@ -1,17 +0,0 @@
-// RUN: not %clang_cc1 -E -frewrite-includes -DFIRST -I %S/Inputs %s -o - | FileCheck -strict-whitespace %s
-
-#if __has_include bar.h
-#endif
-
-#if __has_include(bar.h)
-#endif
-
-#if __has_include(<bar.h)
-#endif
-
-// CHECK: #if __has_include bar.h
-// CHECK: #endif
-// CHECK: #if __has_include(bar.h)
-// CHECK: #endif
-// CHECK: #if __has_include(<bar.h)
-// CHECK: #endif
Removed: cfe/trunk/test/Frontend/Rewriter/rewrite-includes-messages.c
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/test/Frontend/Rewriter/rewrite-includes-messages.c?rev=213158&view=auto
==============================================================================
--- cfe/trunk/test/Frontend/Rewriter/rewrite-includes-messages.c (original)
+++ cfe/trunk/test/Frontend/Rewriter/rewrite-includes-messages.c (removed)
@@ -1,7 +0,0 @@
-// RUN: %clang_cc1 -E -frewrite-includes %s -I%S/Inputs/ | %clang_cc1 -Wall -fsyntax-only -Wunused-macros -x c - 2>&1 > %t.1
-// RUN: %clang_cc1 -I%S/Inputs/ -Wall -Wunused-macros -fsyntax-only %s 2>&1 > %t.2
-// RUN: diff %t.1 %t.2 -u
-// expected-no-diagnostics
-
-#include "rewrite-includes-messages.h"
-#define UNUSED_MACRO
Removed: cfe/trunk/test/Frontend/Rewriter/rewrite-includes-missing.c
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/test/Frontend/Rewriter/rewrite-includes-missing.c?rev=213158&view=auto
==============================================================================
--- cfe/trunk/test/Frontend/Rewriter/rewrite-includes-missing.c (original)
+++ cfe/trunk/test/Frontend/Rewriter/rewrite-includes-missing.c (removed)
@@ -1,8 +0,0 @@
-// RUN: %clang_cc1 -verify -E -frewrite-includes %s -o - | FileCheck -strict-whitespace %s
-
-#include "foobar.h" // expected-error {{'foobar.h' file not found}}
-// CHECK: {{^}}#if 0 /* expanded by -frewrite-includes */{{$}}
-// CHECK-NEXT: {{^}}#include "foobar.h"
-// CHECK-NEXT: {{^}}#endif /* expanded by -frewrite-includes */{{$}}
-// CHECK-NEXT: {{^}}# 3 "{{.*}}rewrite-includes-missing.c"{{$}}
-// CHECK-NEXT: {{^}}# 4 "{{.*}}rewrite-includes-missing.c"{{$}}
Removed: cfe/trunk/test/Frontend/Rewriter/rewrite-includes-modules.c
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/test/Frontend/Rewriter/rewrite-includes-modules.c?rev=213158&view=auto
==============================================================================
--- cfe/trunk/test/Frontend/Rewriter/rewrite-includes-modules.c (original)
+++ cfe/trunk/test/Frontend/Rewriter/rewrite-includes-modules.c (removed)
@@ -1,22 +0,0 @@
-// 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
-
-int bar();
-#include <Module/Module.h>
-int foo();
-#include <Module/Module.h>
-
-// CHECK: int bar();{{$}}
-// CHECK-NEXT: #if 0 /* expanded by -frewrite-includes */{{$}}
-// CHECK-NEXT: #include <Module/Module.h>{{$}}
-// CHECK-NEXT: #endif /* expanded by -frewrite-includes */{{$}}
-// CHECK-NEXT: # 5 "{{.*[/\\]}}rewrite-includes-modules.c"{{$}}
-// CHECK-NEXT: @import Module; /* clang -frewrite-includes: implicit import */{{$}}
-// CHECK-NEXT: # 6 "{{.*[/\\]}}rewrite-includes-modules.c"{{$}}
-// CHECK-NEXT: int foo();{{$}}
-// CHECK-NEXT: #if 0 /* expanded by -frewrite-includes */{{$}}
-// CHECK-NEXT: #include <Module/Module.h>{{$}}
-// CHECK-NEXT: #endif /* expanded by -frewrite-includes */{{$}}
-// CHECK-NEXT: # 7 "{{.*[/\\]}}rewrite-includes-modules.c"{{$}}
-// CHECK-NEXT: @import Module; /* clang -frewrite-includes: implicit import */{{$}}
-// CHECK-NEXT: # 8 "{{.*[/\\]}}rewrite-includes-modules.c"{{$}}
Removed: cfe/trunk/test/Frontend/Rewriter/rewrite-includes-warnings.c
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/test/Frontend/Rewriter/rewrite-includes-warnings.c?rev=213158&view=auto
==============================================================================
--- cfe/trunk/test/Frontend/Rewriter/rewrite-includes-warnings.c (original)
+++ cfe/trunk/test/Frontend/Rewriter/rewrite-includes-warnings.c (removed)
@@ -1,4 +0,0 @@
-// RUN: %clang_cc1 -verify -Wall -Wextra -E -frewrite-includes %s
-// expected-no-diagnostics
-
-#pragma GCC visibility push (default)
Removed: cfe/trunk/test/Frontend/Rewriter/rewrite-includes.c
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/test/Frontend/Rewriter/rewrite-includes.c?rev=213158&view=auto
==============================================================================
--- cfe/trunk/test/Frontend/Rewriter/rewrite-includes.c (original)
+++ cfe/trunk/test/Frontend/Rewriter/rewrite-includes.c (removed)
@@ -1,184 +0,0 @@
-// RUN: not %clang_cc1 -verify -E -frewrite-includes -DFIRST -I %S/Inputs %s -o - | FileCheck -strict-whitespace %s
-// RUN: not %clang_cc1 -verify -E -frewrite-includes -P -DFIRST -I %S/Inputs %s -o - | FileCheck -check-prefix=CHECKNL -strict-whitespace %s
-// STARTCOMPARE
-#define A(a,b) a ## b
-A(1,2)
-#include "rewrite-includes1.h"
-#ifdef FIRST
-#define HEADER "rewrite-includes3.h"
-#include HEADER
-#else
-#include "rewrite-includes4.h"
-#endif
- // indented
-#/**/include /**/ "rewrite-includes5.h" /**/ \
-
-#include "rewrite-includes6.h" // comment
-
-#include "rewrite-includes6.h" /* comment
- continues */
-#include "rewrite-includes7.h"
-#include "rewrite-includes7.h"
-#include "rewrite-includes8.h"
-// ENDCOMPARE
-// CHECK: {{^}}# 1 "{{.*}}rewrite-includes.c"{{$}}
-// CHECK: {{^}}// STARTCOMPARE{{$}}
-// CHECK-NEXT: {{^}}#define A(a,b) a ## b{{$}}
-// CHECK-NEXT: {{^}}A(1,2){{$}}
-// CHECK-NEXT: {{^}}#if 0 /* expanded by -frewrite-includes */{{$}}
-// CHECK-NEXT: {{^}}#include "rewrite-includes1.h"{{$}}
-// CHECK-NEXT: {{^}}#endif /* expanded by -frewrite-includes */{{$}}
-// CHECK-NEXT: {{^}}# 6 "{{.*}}rewrite-includes.c"{{$}}
-// CHECK-NEXT: {{^}}# 1 "{{.*[/\\]Inputs(/|\\\\)}}rewrite-includes1.h" 1{{$}}
-// CHECK-NEXT: {{^}}#if 0 /* expanded by -frewrite-includes */{{$}}
-// CHECK-NEXT: {{^}}#pragma clang system_header{{$}}
-// CHECK-NEXT: {{^}}#endif /* expanded by -frewrite-includes */{{$}}
-// CHECK-NEXT: {{^}}# 2 "{{.*[/\\]Inputs(/|\\\\)}}rewrite-includes1.h" 3{{$}}
-// CHECK-NEXT: {{^}}included_line1{{$}}
-// CHECK-NEXT: {{^}}#if 0 /* expanded by -frewrite-includes */{{$}}
-// CHECK-NEXT: {{^}}#include "rewrite-includes2.h"{{$}}
-// CHECK-NEXT: {{^}}#endif /* expanded by -frewrite-includes */{{$}}
-// CHECK-NEXT: {{^}}# 3 "{{.*[/\\]Inputs(/|\\\\)}}rewrite-includes1.h" 3{{$}}
-// CHECK-NEXT: {{^}}# 1 "{{.*[/\\]Inputs(/|\\\\)}}rewrite-includes2.h" 1 3{{$}}
-// CHECK-NEXT: {{^}}included_line2{{$}}
-// CHECK-NEXT: {{^}}# 4 "{{.*[/\\]Inputs(/|\\\\)}}rewrite-includes1.h" 2 3{{$}}
-// CHECK-NEXT: {{^}}# 7 "{{.*}}rewrite-includes.c" 2{{$}}
-// CHECK-NEXT: {{^}}#ifdef FIRST{{$}}
-// CHECK-NEXT: {{^}}#define HEADER "rewrite-includes3.h"{{$}}
-// CHECK-NEXT: {{^}}#if 0 /* expanded by -frewrite-includes */{{$}}
-// CHECK-NEXT: {{^}}#include HEADER{{$}}
-// CHECK-NEXT: {{^}}#endif /* expanded by -frewrite-includes */{{$}}
-// CHECK-NEXT: {{^}}# 9 "{{.*}}rewrite-includes.c"{{$}}
-// CHECK-NEXT: {{^}}# 1 "{{.*[/\\]Inputs(/|\\\\)}}rewrite-includes3.h" 1{{$}}
-// CHECK-NEXT: {{^}}included_line3{{$}}
-// CHECK-NEXT: {{^}}# 10 "{{.*}}rewrite-includes.c" 2{{$}}
-// CHECK-NEXT: {{^}}#else{{$}}
-// CHECK-NEXT: {{^}}# 11 "{{.*}}rewrite-includes.c"{{$}}
-// CHECK-NEXT: {{^}}#if 0 /* expanded by -frewrite-includes */{{$}}
-// CHECK-NEXT: {{^}}#include "rewrite-includes4.h"{{$}}
-// CHECK-NEXT: {{^}}#endif /* expanded by -frewrite-includes */{{$}}
-// CHECK-NEXT: {{^}}# 11 "{{.*}}rewrite-includes.c"{{$}}
-// CHECK-NEXT: {{^}}# 12 "{{.*}}rewrite-includes.c"{{$}}
-// CHECK-NEXT: {{^}}#endif{{$}}
-// CHECK-NEXT: {{^}}# 13 "{{.*}}rewrite-includes.c"{{$}}
-// CHECK-NEXT: {{^}} // indented{{$}}
-// CHECK-NEXT: {{^}}#if 0 /* expanded by -frewrite-includes */{{$}}
-// CHECK-NEXT: {{^}}#/**/include /**/ "rewrite-includes5.h" /**/ {{\\}}{{$}}
-// CHECK-NEXT: {{^}} {{$}}
-// CHECK-NEXT: {{^}}#endif /* expanded by -frewrite-includes */{{$}}
-// CHECK-NEXT: {{^}}# 15 "{{.*}}rewrite-includes.c"{{$}}
-// CHECK-NEXT: {{^}}# 1 "{{.*[/\\]Inputs(/|\\\\)}}rewrite-includes5.h" 1{{$}}
-// CHECK-NEXT: {{^}}included_line5{{$}}
-// CHECK-NEXT: {{^}}# 16 "{{.*}}rewrite-includes.c" 2{{$}}
-// CHECK-NEXT: {{^}}#if 0 /* expanded by -frewrite-includes */{{$}}
-// CHECK-NEXT: {{^}}#include "rewrite-includes6.h" // comment{{$}}
-// CHECK-NEXT: {{^}}#endif /* expanded by -frewrite-includes */{{$}}
-// CHECK-NEXT: {{^}}# 16 "{{.*}}rewrite-includes.c"{{$}}
-// CHECK-NEXT: {{^}}# 1 "{{.*[/\\]Inputs(/|\\\\)}}rewrite-includes6.h" 1{{$}}
-// CHECK-NEXT: {{^}}#if 0 /* expanded by -frewrite-includes */{{$}}
-// CHECK-NEXT: {{^}}#pragma once{{$}}
-// CHECK-NEXT: {{^}}#endif /* expanded by -frewrite-includes */{{$}}
-// CHECK-NEXT: {{^}}# 2 "{{.*[/\\]Inputs(/|\\\\)}}rewrite-includes6.h"{{$}}
-// CHECK-NEXT: {{^}}included_line6{{$}}
-// CHECK-NEXT: {{^}}# 17 "{{.*}}rewrite-includes.c" 2{{$}}
-// CHECK-NEXT: {{^}} {{$}}
-// CHECK-NEXT: {{^}}#if 0 /* expanded by -frewrite-includes */{{$}}
-// CHECK-NEXT: {{^}}#include "rewrite-includes6.h" /* comment{{$}}
-// CHECK-NEXT: {{^}} continues */{{$}}
-// CHECK-NEXT: {{^}}#endif /* expanded by -frewrite-includes */{{$}}
-// CHECK-NEXT: {{^}}# 19 "{{.*}}rewrite-includes.c"{{$}}
-// CHECK-NEXT: {{^}}# 20 "{{.*}}rewrite-includes.c"{{$}}
-// CHECK-NEXT: {{^}}#if 0 /* expanded by -frewrite-includes */{{$}}
-// CHECK-NEXT: {{^}}#include "rewrite-includes7.h"{{$}}
-// CHECK-NEXT: {{^}}#endif /* expanded by -frewrite-includes */{{$}}
-// CHECK-NEXT: {{^}}# 20 "{{.*}}rewrite-includes.c"{{$}}
-// CHECK-NEXT: {{^}}# 1 "{{.*[/\\]Inputs(/|\\\\)}}rewrite-includes7.h" 1{{$}}
-// CHECK-NEXT: {{^}}#ifndef REWRITE_INCLUDES_7{{$}}
-// CHECK-NEXT: {{^}}#define REWRITE_INCLUDES_7{{$}}
-// CHECK-NEXT: {{^}}included_line7{{$}}
-// CHECK-NEXT: {{^}}#endif{{$}}
-// CHECK-NEXT: {{^}}# 5 "{{.*[/\\]Inputs(/|\\\\)}}rewrite-includes7.h"{{$}}
-// CHECK-NEXT: {{^}}# 21 "{{.*}}rewrite-includes.c" 2{{$}}
-// CHECK-NEXT: {{^}}#if 0 /* expanded by -frewrite-includes */{{$}}
-// CHECK-NEXT: {{^}}#include "rewrite-includes7.h"{{$}}
-// CHECK-NEXT: {{^}}#endif /* expanded by -frewrite-includes */{{$}}
-// CHECK-NEXT: {{^}}# 21 "{{.*}}rewrite-includes.c"{{$}}
-// CHECK-NEXT: {{^}}# 22 "{{.*}}rewrite-includes.c"{{$}}
-// CHECK-NEXT: {{^}}#if 0 /* expanded by -frewrite-includes */{{$}}
-// CHECK-NEXT: {{^}}#include "rewrite-includes8.h"{{$}}
-// CHECK-NEXT: {{^}}#endif /* expanded by -frewrite-includes */{{$}}
-// CHECK-NEXT: {{^}}# 22 "{{.*}}rewrite-includes.c"{{$}}
-// CHECK-NEXT: {{^}}# 1 "{{.*[/\\]Inputs(/|\\\\)}}rewrite-includes8.h" 1{{$}}
-// CHECK-NEXT: {{^}}#if (1)/*__has_include_next(<rewrite-includes8.h>)*/{{$}}
-// CHECK-NEXT: {{^}}#elif (0)/*__has_include(<rewrite-includes8.hfail>)*/{{$}}
-// CHECK-NEXT: {{^}}# 3 "{{.*[/\\]Inputs(/|\\\\)}}rewrite-includes8.h"{{$}}
-// CHECK-NEXT: {{^}}#endif{{$}}
-// CHECK-NEXT: {{^}}# 4 "{{.*[/\\]Inputs(/|\\\\)}}rewrite-includes8.h"{{$}}
-// CHECK-NEXT: {{^}}#if !(1)/*__has_include("rewrite-includes8.h")*/{{$}}
-// CHECK-NEXT: {{^}}#endif{{$}}
-// CHECK-NEXT: {{^}}# 6 "{{.*[/\\]Inputs(/|\\\\)}}rewrite-includes8.h"{{$}}
-// CHECK-NEXT: {{^}}# 23 "{{.*}}rewrite-includes.c" 2{{$}}
-// CHECK-NEXT: {{^}}// ENDCOMPARE{{$}}
-
-// CHECKNL: {{^}}// STARTCOMPARE{{$}}
-// CHECKNL-NEXT: {{^}}#define A(a,b) a ## b{{$}}
-// CHECKNL-NEXT: {{^}}A(1,2){{$}}
-// CHECKNL-NEXT: {{^}}#if 0 /* expanded by -frewrite-includes */{{$}}
-// CHECKNL-NEXT: {{^}}#include "rewrite-includes1.h"{{$}}
-// CHECKNL-NEXT: {{^}}#endif /* expanded by -frewrite-includes */{{$}}
-// CHECKNL-NEXT: {{^}}#if 0 /* expanded by -frewrite-includes */{{$}}
-// CHECKNL-NEXT: {{^}}#pragma clang system_header{{$}}
-// CHECKNL-NEXT: {{^}}#endif /* expanded by -frewrite-includes */{{$}}
-// CHECKNL-NEXT: {{^}}included_line1{{$}}
-// CHECKNL-NEXT: {{^}}#if 0 /* expanded by -frewrite-includes */{{$}}
-// CHECKNL-NEXT: {{^}}#include "rewrite-includes2.h"{{$}}
-// CHECKNL-NEXT: {{^}}#endif /* expanded by -frewrite-includes */{{$}}
-// CHECKNL-NEXT: {{^}}included_line2{{$}}
-// CHECKNL-NEXT: {{^}}#ifdef FIRST{{$}}
-// CHECKNL-NEXT: {{^}}#define HEADER "rewrite-includes3.h"{{$}}
-// CHECKNL-NEXT: {{^}}#if 0 /* expanded by -frewrite-includes */{{$}}
-// CHECKNL-NEXT: {{^}}#include HEADER{{$}}
-// CHECKNL-NEXT: {{^}}#endif /* expanded by -frewrite-includes */{{$}}
-// CHECKNL-NEXT: {{^}}included_line3{{$}}
-// CHECKNL-NEXT: {{^}}#else{{$}}
-// CHECKNL-NEXT: {{^}}#if 0 /* expanded by -frewrite-includes */{{$}}
-// CHECKNL-NEXT: {{^}}#include "rewrite-includes4.h"{{$}}
-// CHECKNL-NEXT: {{^}}#endif /* expanded by -frewrite-includes */{{$}}
-// CHECKNL-NEXT: {{^}}#endif{{$}}
-// CHECKNL-NEXT: {{^}} // indented{{$}}
-// CHECKNL-NEXT: {{^}}#if 0 /* expanded by -frewrite-includes */{{$}}
-// CHECKNL-NEXT: {{^}}#/**/include /**/ "rewrite-includes5.h" /**/ {{\\}}{{$}}
-// CHECKNL-NEXT: {{^}} {{$}}
-// CHECKNL-NEXT: {{^}}#endif /* expanded by -frewrite-includes */{{$}}
-// CHECKNL-NEXT: {{^}}included_line5{{$}}
-// CHECKNL-NEXT: {{^}}#if 0 /* expanded by -frewrite-includes */{{$}}
-// CHECKNL-NEXT: {{^}}#include "rewrite-includes6.h" // comment{{$}}
-// CHECKNL-NEXT: {{^}}#endif /* expanded by -frewrite-includes */{{$}}
-// CHECKNL-NEXT: {{^}}#if 0 /* expanded by -frewrite-includes */{{$}}
-// CHECKNL-NEXT: {{^}}#pragma once{{$}}
-// CHECKNL-NEXT: {{^}}#endif /* expanded by -frewrite-includes */{{$}}
-// CHECKNL-NEXT: {{^}}included_line6{{$}}
-// CHECKNL-NEXT: {{^}} {{$}}
-// CHECKNL-NEXT: {{^}}#if 0 /* expanded by -frewrite-includes */{{$}}
-// CHECKNL-NEXT: {{^}}#include "rewrite-includes6.h" /* comment{{$}}
-// CHECKNL-NEXT: {{^}} continues */{{$}}
-// CHECKNL-NEXT: {{^}}#endif /* expanded by -frewrite-includes */{{$}}
-// CHECKNL-NEXT: {{^}}#if 0 /* expanded by -frewrite-includes */{{$}}
-// CHECKNL-NEXT: {{^}}#include "rewrite-includes7.h"{{$}}
-// CHECKNL-NEXT: {{^}}#endif /* expanded by -frewrite-includes */{{$}}
-// CHECKNL-NEXT: {{^}}#ifndef REWRITE_INCLUDES_7{{$}}
-// CHECKNL-NEXT: {{^}}#define REWRITE_INCLUDES_7{{$}}
-// CHECKNL-NEXT: {{^}}included_line7{{$}}
-// CHECKNL-NEXT: {{^}}#endif{{$}}
-// CHECKNL-NEXT: {{^}}#if 0 /* expanded by -frewrite-includes */{{$}}
-// CHECKNL-NEXT: {{^}}#include "rewrite-includes7.h"{{$}}
-// CHECKNL-NEXT: {{^}}#endif /* expanded by -frewrite-includes */{{$}}
-// CHECKNL-NEXT: {{^}}#if 0 /* expanded by -frewrite-includes */{{$}}
-// CHECKNL-NEXT: {{^}}#include "rewrite-includes8.h"{{$}}
-// CHECKNL-NEXT: {{^}}#endif /* expanded by -frewrite-includes */{{$}}
-// CHECKNL-NEXT: {{^}}#if (1)/*__has_include_next(<rewrite-includes8.h>)*/{{$}}
-// CHECKNL-NEXT: {{^}}#elif (0)/*__has_include(<rewrite-includes8.hfail>)*/{{$}}
-// CHECKNL-NEXT: {{^}}#endif{{$}}
-// CHECKNL-NEXT: {{^}}#if !(1)/*__has_include("rewrite-includes8.h")*/{{$}}
-// CHECKNL-NEXT: {{^}}#endif{{$}}
-// CHECKNL-NEXT: {{^}}// ENDCOMPARE{{$}}
Removed: cfe/trunk/test/Frontend/Rewriter/rewrite-macros.c
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/test/Frontend/Rewriter/rewrite-macros.c?rev=213158&view=auto
==============================================================================
--- cfe/trunk/test/Frontend/Rewriter/rewrite-macros.c (original)
+++ cfe/trunk/test/Frontend/Rewriter/rewrite-macros.c (removed)
@@ -1,19 +0,0 @@
-// RUN: %clang_cc1 %s -verify -rewrite-macros -o %t
-// RUN: FileCheck %s < %t
-
-// Any CHECK line comments are included in the output, so we use some extra
-// regex brackets to make sure we don't match the CHECK lines themselves.
-
-#define A(a,b) a ## b
-
-// CHECK: {{^}} 12 /*A*/ /*(1,2)*/{{$}}
-A(1,2)
-
-// CHECK: {{^}} /*_Pragma("mark")*/{{$}}
-_Pragma("mark")
-
-// CHECK: /*#warning eek*/{{$}}
-/* expected-warning {{eek}} */ #warning eek
-
-// CHECK: {{^}}//#pragma mark mark{{$}}
-#pragma mark mark
Copied: cfe/trunk/test/Frontend/rewrite-includes-bom.c (from r213152, cfe/trunk/test/Frontend/Rewriter/rewrite-includes-bom.c)
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/test/Frontend/rewrite-includes-bom.c?p2=cfe/trunk/test/Frontend/rewrite-includes-bom.c&p1=cfe/trunk/test/Frontend/Rewriter/rewrite-includes-bom.c&r1=213152&r2=213159&rev=213159&view=diff
==============================================================================
(empty)
Copied: cfe/trunk/test/Frontend/rewrite-includes-cli-include.c (from r213152, cfe/trunk/test/Frontend/Rewriter/rewrite-includes-cli-include.c)
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/test/Frontend/rewrite-includes-cli-include.c?p2=cfe/trunk/test/Frontend/rewrite-includes-cli-include.c&p1=cfe/trunk/test/Frontend/Rewriter/rewrite-includes-cli-include.c&r1=213152&r2=213159&rev=213159&view=diff
==============================================================================
(empty)
Copied: cfe/trunk/test/Frontend/rewrite-includes-eof.c (from r213152, cfe/trunk/test/Frontend/Rewriter/rewrite-includes-eof.c)
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/test/Frontend/rewrite-includes-eof.c?p2=cfe/trunk/test/Frontend/rewrite-includes-eof.c&p1=cfe/trunk/test/Frontend/Rewriter/rewrite-includes-eof.c&r1=213152&r2=213159&rev=213159&view=diff
==============================================================================
(empty)
Copied: cfe/trunk/test/Frontend/rewrite-includes-header-cmd-line.c (from r213152, cfe/trunk/test/Frontend/Rewriter/rewrite-includes-header-cmd-line.c)
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/test/Frontend/rewrite-includes-header-cmd-line.c?p2=cfe/trunk/test/Frontend/rewrite-includes-header-cmd-line.c&p1=cfe/trunk/test/Frontend/Rewriter/rewrite-includes-header-cmd-line.c&r1=213152&r2=213159&rev=213159&view=diff
==============================================================================
(empty)
Copied: cfe/trunk/test/Frontend/rewrite-includes-invalid-hasinclude.c (from r213152, cfe/trunk/test/Frontend/Rewriter/rewrite-includes-invalid-hasinclude.c)
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/test/Frontend/rewrite-includes-invalid-hasinclude.c?p2=cfe/trunk/test/Frontend/rewrite-includes-invalid-hasinclude.c&p1=cfe/trunk/test/Frontend/Rewriter/rewrite-includes-invalid-hasinclude.c&r1=213152&r2=213159&rev=213159&view=diff
==============================================================================
(empty)
Copied: cfe/trunk/test/Frontend/rewrite-includes-messages.c (from r213152, cfe/trunk/test/Frontend/Rewriter/rewrite-includes-messages.c)
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/test/Frontend/rewrite-includes-messages.c?p2=cfe/trunk/test/Frontend/rewrite-includes-messages.c&p1=cfe/trunk/test/Frontend/Rewriter/rewrite-includes-messages.c&r1=213152&r2=213159&rev=213159&view=diff
==============================================================================
(empty)
Copied: cfe/trunk/test/Frontend/rewrite-includes-missing.c (from r213152, cfe/trunk/test/Frontend/Rewriter/rewrite-includes-missing.c)
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/test/Frontend/rewrite-includes-missing.c?p2=cfe/trunk/test/Frontend/rewrite-includes-missing.c&p1=cfe/trunk/test/Frontend/Rewriter/rewrite-includes-missing.c&r1=213152&r2=213159&rev=213159&view=diff
==============================================================================
(empty)
Copied: cfe/trunk/test/Frontend/rewrite-includes-modules.c (from r213152, cfe/trunk/test/Frontend/Rewriter/rewrite-includes-modules.c)
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/test/Frontend/rewrite-includes-modules.c?p2=cfe/trunk/test/Frontend/rewrite-includes-modules.c&p1=cfe/trunk/test/Frontend/Rewriter/rewrite-includes-modules.c&r1=213152&r2=213159&rev=213159&view=diff
==============================================================================
--- cfe/trunk/test/Frontend/Rewriter/rewrite-includes-modules.c (original)
+++ cfe/trunk/test/Frontend/rewrite-includes-modules.c Wed Jul 16 10:12:48 2014
@@ -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>
Copied: cfe/trunk/test/Frontend/rewrite-includes-warnings.c (from r213152, cfe/trunk/test/Frontend/Rewriter/rewrite-includes-warnings.c)
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/test/Frontend/rewrite-includes-warnings.c?p2=cfe/trunk/test/Frontend/rewrite-includes-warnings.c&p1=cfe/trunk/test/Frontend/Rewriter/rewrite-includes-warnings.c&r1=213152&r2=213159&rev=213159&view=diff
==============================================================================
(empty)
Copied: cfe/trunk/test/Frontend/rewrite-includes.c (from r213152, cfe/trunk/test/Frontend/Rewriter/rewrite-includes.c)
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/test/Frontend/rewrite-includes.c?p2=cfe/trunk/test/Frontend/rewrite-includes.c&p1=cfe/trunk/test/Frontend/Rewriter/rewrite-includes.c&r1=213152&r2=213159&rev=213159&view=diff
==============================================================================
(empty)
Copied: cfe/trunk/test/Frontend/rewrite-macros.c (from r213152, cfe/trunk/test/Frontend/Rewriter/rewrite-macros.c)
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/test/Frontend/rewrite-macros.c?p2=cfe/trunk/test/Frontend/rewrite-macros.c&p1=cfe/trunk/test/Frontend/Rewriter/rewrite-macros.c&r1=213152&r2=213159&rev=213159&view=diff
==============================================================================
(empty)
Modified: cfe/trunk/test/Misc/emit-html-insert.c
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/test/Misc/emit-html-insert.c?rev=213159&r1=213158&r2=213159&view=diff
==============================================================================
--- cfe/trunk/test/Misc/emit-html-insert.c (original)
+++ cfe/trunk/test/Misc/emit-html-insert.c Wed Jul 16 10:12:48 2014
@@ -1,5 +1,4 @@
// RUN: %clang_cc1 %s -emit-html -o - | grep ">< 10; }"
-// REQUIRES: rewriter
int a(int x) { return x
< 10; }
Modified: cfe/trunk/test/Misc/emit-html.c
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/test/Misc/emit-html.c?rev=213159&r1=213158&r2=213159&view=diff
==============================================================================
--- cfe/trunk/test/Misc/emit-html.c (original)
+++ cfe/trunk/test/Misc/emit-html.c Wed Jul 16 10:12:48 2014
@@ -1,5 +1,4 @@
// RUN: %clang_cc1 %s -emit-html -o -
-// REQUIRES: rewriter
// rdar://6562329
#line 42 "foo.c"
Modified: cfe/trunk/test/Parser/brackets.c
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/test/Parser/brackets.c?rev=213159&r1=213158&r2=213159&view=diff
==============================================================================
--- cfe/trunk/test/Parser/brackets.c (original)
+++ cfe/trunk/test/Parser/brackets.c Wed Jul 16 10:12:48 2014
@@ -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};
Modified: cfe/trunk/test/Parser/brackets.cpp
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/test/Parser/brackets.cpp?rev=213159&r1=213158&r2=213159&view=diff
==============================================================================
--- cfe/trunk/test/Parser/brackets.cpp (original)
+++ cfe/trunk/test/Parser/brackets.cpp Wed Jul 16 10:12:48 2014
@@ -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};
Modified: cfe/trunk/test/Parser/colon-colon-parentheses.cpp
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/test/Parser/colon-colon-parentheses.cpp?rev=213159&r1=213158&r2=213159&view=diff
==============================================================================
--- cfe/trunk/test/Parser/colon-colon-parentheses.cpp (original)
+++ cfe/trunk/test/Parser/colon-colon-parentheses.cpp Wed Jul 16 10:12:48 2014
@@ -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 '::'}}
Modified: cfe/trunk/test/Parser/cxx-extra-semi.cpp
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/test/Parser/cxx-extra-semi.cpp?rev=213159&r1=213158&r2=213159&view=diff
==============================================================================
--- cfe/trunk/test/Parser/cxx-extra-semi.cpp (original)
+++ cfe/trunk/test/Parser/cxx-extra-semi.cpp Wed Jul 16 10:12:48 2014
@@ -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();
Modified: cfe/trunk/test/Parser/nested-namespaces-recovery.cpp
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/test/Parser/nested-namespaces-recovery.cpp?rev=213159&r1=213158&r2=213159&view=diff
==============================================================================
--- cfe/trunk/test/Parser/nested-namespaces-recovery.cpp (original)
+++ cfe/trunk/test/Parser/nested-namespaces-recovery.cpp Wed Jul 16 10:12:48 2014
@@ -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; }
Modified: cfe/trunk/test/Preprocessor/ignore-pragmas.c
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/test/Preprocessor/ignore-pragmas.c?rev=213159&r1=213158&r2=213159&view=diff
==============================================================================
--- cfe/trunk/test/Preprocessor/ignore-pragmas.c (original)
+++ cfe/trunk/test/Preprocessor/ignore-pragmas.c Wed Jul 16 10:12:48 2014
@@ -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)
Modified: cfe/trunk/test/Sema/format-strings-fixit-ssize_t.c
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/test/Sema/format-strings-fixit-ssize_t.c?rev=213159&r1=213158&r2=213159&view=diff
==============================================================================
--- cfe/trunk/test/Sema/format-strings-fixit-ssize_t.c (original)
+++ cfe/trunk/test/Sema/format-strings-fixit-ssize_t.c Wed Jul 16 10:12:48 2014
@@ -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
Modified: cfe/trunk/test/Sema/format-strings-fixit.c
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/test/Sema/format-strings-fixit.c?rev=213159&r1=213158&r2=213159&view=diff
==============================================================================
--- cfe/trunk/test/Sema/format-strings-fixit.c (original)
+++ cfe/trunk/test/Sema/format-strings-fixit.c Wed Jul 16 10:12:48 2014
@@ -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
Modified: cfe/trunk/test/Sema/format-strings-no-fixit.c
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/test/Sema/format-strings-no-fixit.c?rev=213159&r1=213158&r2=213159&view=diff
==============================================================================
--- cfe/trunk/test/Sema/format-strings-no-fixit.c (original)
+++ cfe/trunk/test/Sema/format-strings-no-fixit.c Wed Jul 16 10:12:48 2014
@@ -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
Modified: cfe/trunk/test/Sema/warn-documentation-almost-trailing.c
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/test/Sema/warn-documentation-almost-trailing.c?rev=213159&r1=213158&r2=213159&view=diff
==============================================================================
--- cfe/trunk/test/Sema/warn-documentation-almost-trailing.c (original)
+++ cfe/trunk/test/Sema/warn-documentation-almost-trailing.c Wed Jul 16 10:12:48 2014
@@ -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}}
Modified: cfe/trunk/test/Sema/warn-strncat-size.c
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/test/Sema/warn-strncat-size.c?rev=213159&r1=213158&r2=213159&view=diff
==============================================================================
--- cfe/trunk/test/Sema/warn-strncat-size.c (original)
+++ cfe/trunk/test/Sema/warn-strncat-size.c Wed Jul 16 10:12:48 2014
@@ -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);
Modified: cfe/trunk/test/SemaCXX/delete.cpp
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/test/SemaCXX/delete.cpp?rev=213159&r1=213158&r2=213159&view=diff
==============================================================================
--- cfe/trunk/test/SemaCXX/delete.cpp (original)
+++ cfe/trunk/test/SemaCXX/delete.cpp Wed Jul 16 10:12:48 2014
@@ -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;
Modified: cfe/trunk/test/SemaObjC/cocoa-api-usage.m
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/test/SemaObjC/cocoa-api-usage.m?rev=213159&r1=213158&r2=213159&view=diff
==============================================================================
--- cfe/trunk/test/SemaObjC/cocoa-api-usage.m (original)
+++ cfe/trunk/test/SemaObjC/cocoa-api-usage.m Wed Jul 16 10:12:48 2014
@@ -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)
Modified: cfe/trunk/test/SemaObjC/cocoa-api-usage.m.fixed
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/test/SemaObjC/cocoa-api-usage.m.fixed?rev=213159&r1=213158&r2=213159&view=diff
==============================================================================
--- cfe/trunk/test/SemaObjC/cocoa-api-usage.m.fixed (original)
+++ cfe/trunk/test/SemaObjC/cocoa-api-usage.m.fixed Wed Jul 16 10:12:48 2014
@@ -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)
Modified: cfe/trunk/test/lit.cfg
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/test/lit.cfg?rev=213159&r1=213158&r2=213159&view=diff
==============================================================================
--- cfe/trunk/test/lit.cfg (original)
+++ cfe/trunk/test/lit.cfg Wed Jul 16 10:12:48 2014
@@ -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")
More information about the cfe-commits
mailing list