[PATCH] D34066: [clang] Cleanup fixit.c

Alexander Shaposhnikov via Phabricator via cfe-commits cfe-commits at lists.llvm.org
Fri Jun 9 14:46:35 PDT 2017


alexshap created this revision.

This diff removes temporary file t2 in fixit.c and updates the test command accordingly.
NFC.


Repository:
  rL LLVM

https://reviews.llvm.org/D34066

Files:
  fixit.c


Index: fixit.c
===================================================================
--- fixit.c
+++ fixit.c
@@ -1,9 +1,8 @@
 // RUN: %clang_cc1 -pedantic -Wunused-label -verify -x c %s
 // RUN: cp %s %t
 // RUN: not %clang_cc1 -pedantic -Wunused-label -fixit -x c %t
-// RUN: grep -v CHECK %t > %t2
 // RUN: %clang_cc1 -pedantic -Wunused-label -Werror -x c %t
-// RUN: FileCheck -input-file=%t2 %t
+// RUN: grep -v CHECK %t | FileCheck %t
 
 /* This is a test of the various code modification hints that are
    provided as part of warning or extension diagnostics. All of the


-------------- next part --------------
A non-text attachment was scrubbed...
Name: D34066.102076.patch
Type: text/x-patch
Size: 576 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/cfe-commits/attachments/20170609/ff8e8208/attachment.bin>


More information about the cfe-commits mailing list