[cfe-commits] r42852 - in /cfe/trunk: Driver/ test/Lexer/ test/Parser/ test/Sema/
Chris Lattner
sabre at nondot.org
Wed Oct 10 17:18:28 PDT 2007
Author: lattner
Date: Wed Oct 10 19:18:28 2007
New Revision: 42852
URL: http://llvm.org/viewvc/llvm-project?rev=42852&view=rev
Log:
rename -parse-ast-print to -ast-print
rename -parse-ast-dump to -ast-dump
remove -parse-ast, which is redundant with -fsyntax-only
Modified:
cfe/trunk/Driver/clang.cpp
cfe/trunk/test/Lexer/block_cmt_end.c
cfe/trunk/test/Lexer/constants.c
cfe/trunk/test/Lexer/cxx0x_keyword.cpp
cfe/trunk/test/Parser/CompoundStmtScope.c
cfe/trunk/test/Parser/argument_redef.c
cfe/trunk/test/Parser/attributes.c
cfe/trunk/test/Parser/bad-control.c
cfe/trunk/test/Parser/builtin_classify_type.c
cfe/trunk/test/Parser/builtin_types_compatible.c
cfe/trunk/test/Parser/char-literal-printing.c
cfe/trunk/test/Parser/check_cast.c
cfe/trunk/test/Parser/compound_literal.c
cfe/trunk/test/Parser/cxx-reference.cpp
cfe/trunk/test/Parser/function-decls.c
cfe/trunk/test/Parser/goto-ident.c
cfe/trunk/test/Parser/if-scope-c90.c
cfe/trunk/test/Parser/if-scope-c99.c
cfe/trunk/test/Parser/implicit-casts.c
cfe/trunk/test/Parser/ocu_vector_components.c
cfe/trunk/test/Parser/parmvardecl_conversion.c
cfe/trunk/test/Parser/pointer-arithmetic.c
cfe/trunk/test/Parser/pointer_promotion.c
cfe/trunk/test/Parser/recovery-1.c
cfe/trunk/test/Parser/typeof.c
cfe/trunk/test/Sema/arg-duplicate.c
cfe/trunk/test/Sema/arg-invalid.c
cfe/trunk/test/Sema/array-constraint.c
cfe/trunk/test/Sema/array-init.c
cfe/trunk/test/Sema/assign.c
cfe/trunk/test/Sema/c89.c
cfe/trunk/test/Sema/cfstring.c
cfe/trunk/test/Sema/compare.c
cfe/trunk/test/Sema/decl-invalid.c
cfe/trunk/test/Sema/default.c
cfe/trunk/test/Sema/enum.c
cfe/trunk/test/Sema/floating-point-compare.c
cfe/trunk/test/Sema/for.c
cfe/trunk/test/Sema/format-strings.c
cfe/trunk/test/Sema/id_not_builtin.m
cfe/trunk/test/Sema/if-empty-body.c
cfe/trunk/test/Sema/implicit-def.c
cfe/trunk/test/Sema/offsetof.c
cfe/trunk/test/Sema/return-stack-addr.cpp
cfe/trunk/test/Sema/selector-overload.m
cfe/trunk/test/Sema/switch-duplicate-defaults.c
cfe/trunk/test/Sema/switch.c
cfe/trunk/test/Sema/typedef-retain.c
cfe/trunk/test/Sema/unused-expr.c
cfe/trunk/test/Sema/void_arg.c
Modified: cfe/trunk/Driver/clang.cpp
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/Driver/clang.cpp?rev=42852&r1=42851&r2=42852&view=diff
==============================================================================
--- cfe/trunk/Driver/clang.cpp (original)
+++ cfe/trunk/Driver/clang.cpp Wed Oct 10 19:18:28 2007
@@ -50,10 +50,9 @@
enum ProgActions {
EmitLLVM, // Emit a .ll file.
- ParseASTPrint, // Parse ASTs and print them.
- ParseASTDump, // Parse ASTs and dump them.
- ParseASTView, // Parse ASTs and view them in Graphviz.
- BuildAST, // Parse ASTs.
+ ASTPrint, // Parse ASTs and print them.
+ ASTDump, // Parse ASTs and dump them.
+ ASTView, // Parse ASTs and view them in Graphviz.
ParseCFGDump, // Parse ASTS. Build CFGs. Print CFGs.
ParseCFGView, // Parse ASTS. Build CFGs. View CFGs.
AnalysisLiveVariables, // Print results of live-variable analysis.
@@ -84,14 +83,12 @@
"Run parser and perform semantic analysis"),
clEnumValN(ParsePrintCallbacks, "parse-print-callbacks",
"Run parser and print each callback invoked"),
- clEnumValN(BuildAST, "parse-ast",
- "Run parser and build ASTs"),
- clEnumValN(ParseASTPrint, "parse-ast-print",
- "Run parser, build ASTs, then print ASTs"),
- clEnumValN(ParseASTDump, "parse-ast-dump",
- "Run parser, build ASTs, then dump them"),
- clEnumValN(ParseASTView, "parse-ast-view",
- "Run parser, build ASTs, and view them with GraphViz."),
+ clEnumValN(ASTPrint, "ast-print",
+ "Build ASTs and then pretty-print them"),
+ clEnumValN(ASTDump, "ast-dump",
+ "Build ASTs and then debug dump them"),
+ clEnumValN(ASTView, "parse-ast-view",
+ "Build ASTs and view them with GraphViz."),
clEnumValN(ParseCFGDump, "dump-cfg",
"Run parser, then build and print CFGs."),
clEnumValN(ParseCFGView, "view-cfg",
@@ -764,19 +761,18 @@
break;
case ParseSyntaxOnly: // -fsyntax-only
- case BuildAST:
Consumer = new ASTConsumer();
break;
- case ParseASTPrint:
+ case ASTPrint:
Consumer = CreateASTPrinter();
break;
- case ParseASTDump:
+ case ASTDump:
Consumer = CreateASTDumper();
break;
- case ParseASTView:
+ case ASTView:
Consumer = CreateASTViewer();
break;
Modified: cfe/trunk/test/Lexer/block_cmt_end.c
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/test/Lexer/block_cmt_end.c?rev=42852&r1=42851&r2=42852&view=diff
==============================================================================
--- cfe/trunk/test/Lexer/block_cmt_end.c (original)
+++ cfe/trunk/test/Lexer/block_cmt_end.c Wed Oct 10 19:18:28 2007
@@ -3,7 +3,7 @@
RUN: clang -E %s | grep foo &&
RUN: clang -E %s | not grep abc &&
RUN: clang -E %s | not grep xyz &&
- RUN: clang -parse-ast -verify %s
+ RUN: clang -fsyntax-only -verify %s
*/
// This is a simple comment, /*/ does not end a comment, the trailing */ does.
Modified: cfe/trunk/test/Lexer/constants.c
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/test/Lexer/constants.c?rev=42852&r1=42851&r2=42852&view=diff
==============================================================================
--- cfe/trunk/test/Lexer/constants.c (original)
+++ cfe/trunk/test/Lexer/constants.c Wed Oct 10 19:18:28 2007
@@ -1,4 +1,4 @@
-/* RUN: clang -parse-ast -verify %s
+/* RUN: clang -fsyntax-only -verify %s
*/
int x = 000000080; /* expected-error {{invalid digit}} */
Modified: cfe/trunk/test/Lexer/cxx0x_keyword.cpp
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/test/Lexer/cxx0x_keyword.cpp?rev=42852&r1=42851&r2=42852&view=diff
==============================================================================
--- cfe/trunk/test/Lexer/cxx0x_keyword.cpp (original)
+++ cfe/trunk/test/Lexer/cxx0x_keyword.cpp Wed Oct 10 19:18:28 2007
@@ -1,2 +1,2 @@
-// RUN: clang -parse-ast -verify -std=c++0x %s 2>&1
+// RUN: clang -fsyntax-only -verify -std=c++0x %s 2>&1
int static_assert; /* expected-error {{expected identifier or '('}}} */
Modified: cfe/trunk/test/Parser/CompoundStmtScope.c
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/test/Parser/CompoundStmtScope.c?rev=42852&r1=42851&r2=42852&view=diff
==============================================================================
--- cfe/trunk/test/Parser/CompoundStmtScope.c (original)
+++ cfe/trunk/test/Parser/CompoundStmtScope.c Wed Oct 10 19:18:28 2007
@@ -1,4 +1,4 @@
-// RUN: clang -parse-ast -verify %s
+// RUN: clang -fsyntax-only -verify %s
int foo() {
{
Modified: cfe/trunk/test/Parser/argument_redef.c
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/test/Parser/argument_redef.c?rev=42852&r1=42851&r2=42852&view=diff
==============================================================================
--- cfe/trunk/test/Parser/argument_redef.c (original)
+++ cfe/trunk/test/Parser/argument_redef.c Wed Oct 10 19:18:28 2007
@@ -1,4 +1,4 @@
-/* RUN: clang -parse-ast -verify %s
+/* RUN: clang -fsyntax-only -verify %s
*/
int foo(int A) { /* expected-error {{previous definition is here}} */
Modified: cfe/trunk/test/Parser/attributes.c
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/test/Parser/attributes.c?rev=42852&r1=42851&r2=42852&view=diff
==============================================================================
--- cfe/trunk/test/Parser/attributes.c (original)
+++ cfe/trunk/test/Parser/attributes.c Wed Oct 10 19:18:28 2007
@@ -1,4 +1,4 @@
-// RUN: clang -parse-ast -verify %s -pedantic
+// RUN: clang -fsyntax-only -verify %s -pedantic
static __inline void __attribute__((__always_inline__, __nodebug__)) // expected-warning {{extension used}}
foo (void)
Modified: cfe/trunk/test/Parser/bad-control.c
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/test/Parser/bad-control.c?rev=42852&r1=42851&r2=42852&view=diff
==============================================================================
--- cfe/trunk/test/Parser/bad-control.c (original)
+++ cfe/trunk/test/Parser/bad-control.c Wed Oct 10 19:18:28 2007
@@ -1,4 +1,4 @@
-/* RUN: clang -parse-ast -verify %s
+/* RUN: clang -fsyntax-only -verify %s
*/
int foo() {
break; /* expected-error {{'break' statement not in loop or switch statement}} */
Modified: cfe/trunk/test/Parser/builtin_classify_type.c
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/test/Parser/builtin_classify_type.c?rev=42852&r1=42851&r2=42852&view=diff
==============================================================================
--- cfe/trunk/test/Parser/builtin_classify_type.c (original)
+++ cfe/trunk/test/Parser/builtin_classify_type.c Wed Oct 10 19:18:28 2007
@@ -1,4 +1,4 @@
-// RUN: clang -parse-ast -verify %s
+// RUN: clang -fsyntax-only -verify %s
struct foo { int a; };
Modified: cfe/trunk/test/Parser/builtin_types_compatible.c
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/test/Parser/builtin_types_compatible.c?rev=42852&r1=42851&r2=42852&view=diff
==============================================================================
--- cfe/trunk/test/Parser/builtin_types_compatible.c (original)
+++ cfe/trunk/test/Parser/builtin_types_compatible.c Wed Oct 10 19:18:28 2007
@@ -1,4 +1,4 @@
-// RUN: clang -parse-ast -verify %s
+// RUN: clang -fsyntax-only -verify %s
extern int funcInt(int);
extern float funcFloat(float);
Modified: cfe/trunk/test/Parser/char-literal-printing.c
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/test/Parser/char-literal-printing.c?rev=42852&r1=42851&r2=42852&view=diff
==============================================================================
--- cfe/trunk/test/Parser/char-literal-printing.c (original)
+++ cfe/trunk/test/Parser/char-literal-printing.c Wed Oct 10 19:18:28 2007
@@ -1,4 +1,4 @@
-// RUN: clang -parse-ast-print %s
+// RUN: clang -ast-print %s
#include <stddef.h>
Modified: cfe/trunk/test/Parser/check_cast.c
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/test/Parser/check_cast.c?rev=42852&r1=42851&r2=42852&view=diff
==============================================================================
--- cfe/trunk/test/Parser/check_cast.c (original)
+++ cfe/trunk/test/Parser/check_cast.c Wed Oct 10 19:18:28 2007
@@ -1,4 +1,4 @@
-// RUN: clang -parse-ast -verify %s
+// RUN: clang -fsyntax-only -verify %s
struct foo {
int a;
};
Modified: cfe/trunk/test/Parser/compound_literal.c
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/test/Parser/compound_literal.c?rev=42852&r1=42851&r2=42852&view=diff
==============================================================================
--- cfe/trunk/test/Parser/compound_literal.c (original)
+++ cfe/trunk/test/Parser/compound_literal.c Wed Oct 10 19:18:28 2007
@@ -1,4 +1,4 @@
-// RUN: clang -parse-ast -verify %s
+// RUN: clang -fsyntax-only -verify %s
int main() {
char *s;
s = (char []){"whatever"};
Modified: cfe/trunk/test/Parser/cxx-reference.cpp
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/test/Parser/cxx-reference.cpp?rev=42852&r1=42851&r2=42852&view=diff
==============================================================================
--- cfe/trunk/test/Parser/cxx-reference.cpp (original)
+++ cfe/trunk/test/Parser/cxx-reference.cpp Wed Oct 10 19:18:28 2007
@@ -1,4 +1,4 @@
-// RUN: clang -parse-ast -verify %s
+// RUN: clang -fsyntax-only -verify %s
extern char *bork;
char *& bar = bork;
Modified: cfe/trunk/test/Parser/function-decls.c
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/test/Parser/function-decls.c?rev=42852&r1=42851&r2=42852&view=diff
==============================================================================
--- cfe/trunk/test/Parser/function-decls.c (original)
+++ cfe/trunk/test/Parser/function-decls.c Wed Oct 10 19:18:28 2007
@@ -1,4 +1,4 @@
-/* RUN: clang %s -parse-ast-print
+/* RUN: clang %s -ast-print
*/
void foo() {
Modified: cfe/trunk/test/Parser/goto-ident.c
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/test/Parser/goto-ident.c?rev=42852&r1=42851&r2=42852&view=diff
==============================================================================
--- cfe/trunk/test/Parser/goto-ident.c (original)
+++ cfe/trunk/test/Parser/goto-ident.c Wed Oct 10 19:18:28 2007
@@ -1,4 +1,4 @@
-/* RUN: clang -parse-ast -verify %s
+/* RUN: clang -fsyntax-only -verify %s
*/
void foo() {
Modified: cfe/trunk/test/Parser/if-scope-c90.c
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/test/Parser/if-scope-c90.c?rev=42852&r1=42851&r2=42852&view=diff
==============================================================================
--- cfe/trunk/test/Parser/if-scope-c90.c (original)
+++ cfe/trunk/test/Parser/if-scope-c90.c Wed Oct 10 19:18:28 2007
@@ -1,4 +1,4 @@
-// RUN: clang -parse-ast -verify --std=c90 %s
+// RUN: clang -fsyntax-only -verify --std=c90 %s
int f (int z)
{
Modified: cfe/trunk/test/Parser/if-scope-c99.c
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/test/Parser/if-scope-c99.c?rev=42852&r1=42851&r2=42852&view=diff
==============================================================================
--- cfe/trunk/test/Parser/if-scope-c99.c (original)
+++ cfe/trunk/test/Parser/if-scope-c99.c Wed Oct 10 19:18:28 2007
@@ -1,4 +1,4 @@
-// RUN: clang -parse-ast -verify --std=c99 %s
+// RUN: clang -fsyntax-only -verify --std=c99 %s
int f (int z)
{
Modified: cfe/trunk/test/Parser/implicit-casts.c
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/test/Parser/implicit-casts.c?rev=42852&r1=42851&r2=42852&view=diff
==============================================================================
--- cfe/trunk/test/Parser/implicit-casts.c (original)
+++ cfe/trunk/test/Parser/implicit-casts.c Wed Oct 10 19:18:28 2007
@@ -1,4 +1,4 @@
-// RUN: clang -parse-ast -verify %s
+// RUN: clang -fsyntax-only -verify %s
_Complex double X;
void test1(int c) {
X = 5;
Modified: cfe/trunk/test/Parser/ocu_vector_components.c
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/test/Parser/ocu_vector_components.c?rev=42852&r1=42851&r2=42852&view=diff
==============================================================================
--- cfe/trunk/test/Parser/ocu_vector_components.c (original)
+++ cfe/trunk/test/Parser/ocu_vector_components.c Wed Oct 10 19:18:28 2007
@@ -1,4 +1,4 @@
-// RUN: clang -parse-ast -verify %s
+// RUN: clang -fsyntax-only -verify %s
typedef __attribute__(( ocu_vector_type(2) )) float float2;
typedef __attribute__(( ocu_vector_type(3) )) float float3;
Modified: cfe/trunk/test/Parser/parmvardecl_conversion.c
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/test/Parser/parmvardecl_conversion.c?rev=42852&r1=42851&r2=42852&view=diff
==============================================================================
--- cfe/trunk/test/Parser/parmvardecl_conversion.c (original)
+++ cfe/trunk/test/Parser/parmvardecl_conversion.c Wed Oct 10 19:18:28 2007
@@ -1,4 +1,4 @@
-// RUN: clang -parse-ast -verify %s
+// RUN: clang -fsyntax-only -verify %s
void f (int p[]) { p++; }
Modified: cfe/trunk/test/Parser/pointer-arithmetic.c
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/test/Parser/pointer-arithmetic.c?rev=42852&r1=42851&r2=42852&view=diff
==============================================================================
--- cfe/trunk/test/Parser/pointer-arithmetic.c (original)
+++ cfe/trunk/test/Parser/pointer-arithmetic.c Wed Oct 10 19:18:28 2007
@@ -1,4 +1,4 @@
-// RUN: clang -parse-ast -verify %s
+// RUN: clang -fsyntax-only -verify %s
int *test1(int *a) { return a + 1; }
int *test2(int *a) { return 1 + a; }
Modified: cfe/trunk/test/Parser/pointer_promotion.c
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/test/Parser/pointer_promotion.c?rev=42852&r1=42851&r2=42852&view=diff
==============================================================================
--- cfe/trunk/test/Parser/pointer_promotion.c (original)
+++ cfe/trunk/test/Parser/pointer_promotion.c Wed Oct 10 19:18:28 2007
@@ -1,4 +1,4 @@
-// RUN: clang -parse-ast -verify %s
+// RUN: clang -fsyntax-only -verify %s
int test() {
void *vp;
Modified: cfe/trunk/test/Parser/recovery-1.c
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/test/Parser/recovery-1.c?rev=42852&r1=42851&r2=42852&view=diff
==============================================================================
--- cfe/trunk/test/Parser/recovery-1.c (original)
+++ cfe/trunk/test/Parser/recovery-1.c Wed Oct 10 19:18:28 2007
@@ -1,5 +1,5 @@
// RUN: clang -fsyntax-only -fno-caret-diagnostics -pedantic %s 2>&1 | grep warning | wc -l | grep 1
-// RUN: clang -parse-ast -verify -pedantic %s
+// RUN: clang -fsyntax-only -verify -pedantic %s
char (((( /* expected-error {{to match this '('}} */
*X x ] )))); /* expected-error {{expected ')'}} */
Modified: cfe/trunk/test/Parser/typeof.c
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/test/Parser/typeof.c?rev=42852&r1=42851&r2=42852&view=diff
==============================================================================
--- cfe/trunk/test/Parser/typeof.c (original)
+++ cfe/trunk/test/Parser/typeof.c Wed Oct 10 19:18:28 2007
@@ -1,4 +1,4 @@
-// RUN: clang -parse-ast -verify %s
+// RUN: clang -fsyntax-only -verify %s
typedef int TInt;
Modified: cfe/trunk/test/Sema/arg-duplicate.c
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/test/Sema/arg-duplicate.c?rev=42852&r1=42851&r2=42852&view=diff
==============================================================================
--- cfe/trunk/test/Sema/arg-duplicate.c (original)
+++ cfe/trunk/test/Sema/arg-duplicate.c Wed Oct 10 19:18:28 2007
@@ -1,4 +1,4 @@
-// RUN: clang -parse-ast -verify %s
+// RUN: clang -fsyntax-only -verify %s
typedef int x;
int f3(y, x,
Modified: cfe/trunk/test/Sema/arg-invalid.c
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/test/Sema/arg-invalid.c?rev=42852&r1=42851&r2=42852&view=diff
==============================================================================
--- cfe/trunk/test/Sema/arg-invalid.c (original)
+++ cfe/trunk/test/Sema/arg-invalid.c Wed Oct 10 19:18:28 2007
@@ -1,4 +1,4 @@
-// RUN: clang %s -parse-ast -verify
+// RUN: clang %s -fsyntax-only -verify
void bar (void *);
void f11 (z) // expected-error {{may not have 'void' type}}
Modified: cfe/trunk/test/Sema/array-constraint.c
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/test/Sema/array-constraint.c?rev=42852&r1=42851&r2=42852&view=diff
==============================================================================
--- cfe/trunk/test/Sema/array-constraint.c (original)
+++ cfe/trunk/test/Sema/array-constraint.c Wed Oct 10 19:18:28 2007
@@ -1,4 +1,4 @@
-// RUN: clang -parse-ast -verify -pedantic %s
+// RUN: clang -fsyntax-only -verify -pedantic %s
struct s;
struct s* t (struct s z[]) { // expected-error {{array has incomplete element type}}
Modified: cfe/trunk/test/Sema/array-init.c
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/test/Sema/array-init.c?rev=42852&r1=42851&r2=42852&view=diff
==============================================================================
--- cfe/trunk/test/Sema/array-init.c (original)
+++ cfe/trunk/test/Sema/array-init.c Wed Oct 10 19:18:28 2007
@@ -1,4 +1,4 @@
-// RUN: clang -parse-ast -verify -pedantic %s
+// RUN: clang -fsyntax-only -verify -pedantic %s
extern int foof() = 1; // expected-error{{illegal initializer (only variables can be initialized)}}
Modified: cfe/trunk/test/Sema/assign.c
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/test/Sema/assign.c?rev=42852&r1=42851&r2=42852&view=diff
==============================================================================
--- cfe/trunk/test/Sema/assign.c (original)
+++ cfe/trunk/test/Sema/assign.c Wed Oct 10 19:18:28 2007
@@ -1,4 +1,4 @@
-// RUN: clang -parse-ast -verify %s
+// RUN: clang -fsyntax-only -verify %s
void *test1(void) { return 0; }
Modified: cfe/trunk/test/Sema/c89.c
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/test/Sema/c89.c?rev=42852&r1=42851&r2=42852&view=diff
==============================================================================
--- cfe/trunk/test/Sema/c89.c (original)
+++ cfe/trunk/test/Sema/c89.c Wed Oct 10 19:18:28 2007
@@ -1,4 +1,4 @@
-/* RUN: clang %s -std=c89 -pedantic -parse-ast -verify
+/* RUN: clang %s -std=c89 -pedantic -fsyntax-only -verify
*/
void test1() {
{
Modified: cfe/trunk/test/Sema/cfstring.c
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/test/Sema/cfstring.c?rev=42852&r1=42851&r2=42852&view=diff
==============================================================================
--- cfe/trunk/test/Sema/cfstring.c (original)
+++ cfe/trunk/test/Sema/cfstring.c Wed Oct 10 19:18:28 2007
@@ -1,6 +1,6 @@
#define CFSTR __builtin___CFStringMakeConstantString
-// RUN: clang %s -parse-ast -verify
+// RUN: clang %s -fsyntax-only -verify
void f() {
CFSTR("\242"); // expected-warning { CFString literal contains non-ASCII character }
CFSTR("\0"); // expected-warning { CFString literal contains NUL character }
Modified: cfe/trunk/test/Sema/compare.c
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/test/Sema/compare.c?rev=42852&r1=42851&r2=42852&view=diff
==============================================================================
--- cfe/trunk/test/Sema/compare.c (original)
+++ cfe/trunk/test/Sema/compare.c Wed Oct 10 19:18:28 2007
@@ -1,4 +1,4 @@
-// RUN: clang -parse-ast -verify %s
+// RUN: clang -fsyntax-only -verify %s
int test(char *C) { // nothing here should warn.
return C != ((void*)0);
Modified: cfe/trunk/test/Sema/decl-invalid.c
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/test/Sema/decl-invalid.c?rev=42852&r1=42851&r2=42852&view=diff
==============================================================================
--- cfe/trunk/test/Sema/decl-invalid.c (original)
+++ cfe/trunk/test/Sema/decl-invalid.c Wed Oct 10 19:18:28 2007
@@ -1,3 +1,3 @@
-// RUN: clang %s -parse-ast -verify
+// RUN: clang %s -fsyntax-only -verify
typedef union <anonymous> __mbstate_t; // expected-error: {{expected identifier or}}
Modified: cfe/trunk/test/Sema/default.c
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/test/Sema/default.c?rev=42852&r1=42851&r2=42852&view=diff
==============================================================================
--- cfe/trunk/test/Sema/default.c (original)
+++ cfe/trunk/test/Sema/default.c Wed Oct 10 19:18:28 2007
@@ -1,4 +1,4 @@
-// RUN: clang -parse-ast -verify %s
+// RUN: clang -fsyntax-only -verify %s
void f5 (int z) {
if (z)
Modified: cfe/trunk/test/Sema/enum.c
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/test/Sema/enum.c?rev=42852&r1=42851&r2=42852&view=diff
==============================================================================
--- cfe/trunk/test/Sema/enum.c (original)
+++ cfe/trunk/test/Sema/enum.c Wed Oct 10 19:18:28 2007
@@ -1,4 +1,4 @@
-// RUN: clang %s -parse-ast -verify -pedantic
+// RUN: clang %s -fsyntax-only -verify -pedantic
enum e {A,
B = 42LL << 32, // expected-warning {{ISO C restricts enumerator values to range of 'int'}}
Modified: cfe/trunk/test/Sema/floating-point-compare.c
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/test/Sema/floating-point-compare.c?rev=42852&r1=42851&r2=42852&view=diff
==============================================================================
--- cfe/trunk/test/Sema/floating-point-compare.c (original)
+++ cfe/trunk/test/Sema/floating-point-compare.c Wed Oct 10 19:18:28 2007
@@ -1,4 +1,4 @@
-// RUN: clang -parse-ast -verify %s
+// RUN: clang -fsyntax-only -verify %s
int foo(float x, float y) {
return x == y; // expected-warning {{comparing floating point with ==}}
Modified: cfe/trunk/test/Sema/for.c
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/test/Sema/for.c?rev=42852&r1=42851&r2=42852&view=diff
==============================================================================
--- cfe/trunk/test/Sema/for.c (original)
+++ cfe/trunk/test/Sema/for.c Wed Oct 10 19:18:28 2007
@@ -1,4 +1,4 @@
-// RUN: clang -parse-ast -verify %s
+// RUN: clang -fsyntax-only -verify %s
// Check C99 6.8.5p3
void b1 (void) { for (void (*f) (void);;); }
Modified: cfe/trunk/test/Sema/format-strings.c
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/test/Sema/format-strings.c?rev=42852&r1=42851&r2=42852&view=diff
==============================================================================
--- cfe/trunk/test/Sema/format-strings.c (original)
+++ cfe/trunk/test/Sema/format-strings.c Wed Oct 10 19:18:28 2007
@@ -1,4 +1,4 @@
-// RUN: clang -parse-ast -verify %s
+// RUN: clang -fsyntax-only -verify %s
#include <stdio.h>
#include <stdarg.h>
Modified: cfe/trunk/test/Sema/id_not_builtin.m
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/test/Sema/id_not_builtin.m?rev=42852&r1=42851&r2=42852&view=diff
==============================================================================
--- cfe/trunk/test/Sema/id_not_builtin.m (original)
+++ cfe/trunk/test/Sema/id_not_builtin.m Wed Oct 10 19:18:28 2007
@@ -1,4 +1,4 @@
-// RUN: clang %s -parse-ast -verify
+// RUN: clang %s -fsyntax-only -verify
id obj; // expected-error{{expected '=', ',', ';', 'asm', or '__attribute__' after declarator}}
Modified: cfe/trunk/test/Sema/if-empty-body.c
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/test/Sema/if-empty-body.c?rev=42852&r1=42851&r2=42852&view=diff
==============================================================================
--- cfe/trunk/test/Sema/if-empty-body.c (original)
+++ cfe/trunk/test/Sema/if-empty-body.c Wed Oct 10 19:18:28 2007
@@ -1,4 +1,4 @@
-// RUN: clang -parse-ast -verify %s
+// RUN: clang -fsyntax-only -verify %s
void f1(int a) {
if (a); // expected-warning {{if statement has empty body}}
Modified: cfe/trunk/test/Sema/implicit-def.c
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/test/Sema/implicit-def.c?rev=42852&r1=42851&r2=42852&view=diff
==============================================================================
--- cfe/trunk/test/Sema/implicit-def.c (original)
+++ cfe/trunk/test/Sema/implicit-def.c Wed Oct 10 19:18:28 2007
@@ -1,5 +1,5 @@
-/* RUN: clang -parse-ast %s -std=c89 &&
- * RUN: not clang -parse-ast %s -std=c99 -pedantic-errors
+/* RUN: clang -fsyntax-only %s -std=c89 &&
+ * RUN: not clang -fsyntax-only %s -std=c99 -pedantic-errors
*/
int A() {
Modified: cfe/trunk/test/Sema/offsetof.c
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/test/Sema/offsetof.c?rev=42852&r1=42851&r2=42852&view=diff
==============================================================================
--- cfe/trunk/test/Sema/offsetof.c (original)
+++ cfe/trunk/test/Sema/offsetof.c Wed Oct 10 19:18:28 2007
@@ -1,4 +1,4 @@
-// RUN: clang -parse-ast -verify %s
+// RUN: clang -fsyntax-only -verify %s
#define offsetof(TYPE, MEMBER) __builtin_offsetof (TYPE, MEMBER)
Modified: cfe/trunk/test/Sema/return-stack-addr.cpp
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/test/Sema/return-stack-addr.cpp?rev=42852&r1=42851&r2=42852&view=diff
==============================================================================
--- cfe/trunk/test/Sema/return-stack-addr.cpp (original)
+++ cfe/trunk/test/Sema/return-stack-addr.cpp Wed Oct 10 19:18:28 2007
@@ -1,4 +1,4 @@
-// RUN: clang -parse-ast -verify %s
+// RUN: clang -fsyntax-only -verify %s
int* ret_local() {
Modified: cfe/trunk/test/Sema/selector-overload.m
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/test/Sema/selector-overload.m?rev=42852&r1=42851&r2=42852&view=diff
==============================================================================
--- cfe/trunk/test/Sema/selector-overload.m (original)
+++ cfe/trunk/test/Sema/selector-overload.m Wed Oct 10 19:18:28 2007
@@ -1,4 +1,4 @@
-// RUN: clang %s -parse-ast
+// RUN: clang %s -fsyntax-only
#import <Foundation/NSObject.h>
struct D {
Modified: cfe/trunk/test/Sema/switch-duplicate-defaults.c
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/test/Sema/switch-duplicate-defaults.c?rev=42852&r1=42851&r2=42852&view=diff
==============================================================================
--- cfe/trunk/test/Sema/switch-duplicate-defaults.c (original)
+++ cfe/trunk/test/Sema/switch-duplicate-defaults.c Wed Oct 10 19:18:28 2007
@@ -1,4 +1,4 @@
-// RUN: clang -parse-ast -verify %s
+// RUN: clang -fsyntax-only -verify %s
void f (int z) {
switch(z) {
Modified: cfe/trunk/test/Sema/switch.c
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/test/Sema/switch.c?rev=42852&r1=42851&r2=42852&view=diff
==============================================================================
--- cfe/trunk/test/Sema/switch.c (original)
+++ cfe/trunk/test/Sema/switch.c Wed Oct 10 19:18:28 2007
@@ -1,4 +1,4 @@
-// RUN: clang -parse-ast -verify %s
+// RUN: clang -fsyntax-only -verify %s
void f (int z) {
while (z) {
Modified: cfe/trunk/test/Sema/typedef-retain.c
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/test/Sema/typedef-retain.c?rev=42852&r1=42851&r2=42852&view=diff
==============================================================================
--- cfe/trunk/test/Sema/typedef-retain.c (original)
+++ cfe/trunk/test/Sema/typedef-retain.c Wed Oct 10 19:18:28 2007
@@ -1,4 +1,4 @@
-// RUN: clang -parse-ast -verify %s
+// RUN: clang -fsyntax-only -verify %s
typedef float float4 __attribute__((vector_size(16)));
typedef int int4 __attribute__((vector_size(16)));
Modified: cfe/trunk/test/Sema/unused-expr.c
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/test/Sema/unused-expr.c?rev=42852&r1=42851&r2=42852&view=diff
==============================================================================
--- cfe/trunk/test/Sema/unused-expr.c (original)
+++ cfe/trunk/test/Sema/unused-expr.c Wed Oct 10 19:18:28 2007
@@ -1,4 +1,4 @@
-// RUN: clang -parse-ast -verify %s
+// RUN: clang -fsyntax-only -verify %s
int foo(int X, int Y);
Modified: cfe/trunk/test/Sema/void_arg.c
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/test/Sema/void_arg.c?rev=42852&r1=42851&r2=42852&view=diff
==============================================================================
--- cfe/trunk/test/Sema/void_arg.c (original)
+++ cfe/trunk/test/Sema/void_arg.c Wed Oct 10 19:18:28 2007
@@ -1,4 +1,4 @@
-/* RUN: clang -parse-ast %s 2>&1 | grep '6 diagnostics'
+/* RUN: clang -fsyntax-only %s 2>&1 | grep '6 diagnostics'
*/
typedef void Void;
More information about the cfe-commits
mailing list