mirror of
https://github.com/llvm/llvm-project.git
synced 2025-05-01 14:06:07 +00:00

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
9 lines
460 B
C
9 lines
460 B
C
// 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"{{$}}
|