]> granicus.if.org Git - clang/commitdiff
rename -parse-ast-print to -ast-print
authorChris Lattner <sabre@nondot.org>
Thu, 11 Oct 2007 00:18:28 +0000 (00:18 +0000)
committerChris Lattner <sabre@nondot.org>
Thu, 11 Oct 2007 00:18:28 +0000 (00:18 +0000)
rename -parse-ast-dump to -ast-dump
remove -parse-ast, which is redundant with -fsyntax-only

git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@42852 91177308-0d34-0410-b5e6-96231b3b80d8

50 files changed:
Driver/clang.cpp
test/Lexer/block_cmt_end.c
test/Lexer/constants.c
test/Lexer/cxx0x_keyword.cpp
test/Parser/CompoundStmtScope.c
test/Parser/argument_redef.c
test/Parser/attributes.c
test/Parser/bad-control.c
test/Parser/builtin_classify_type.c
test/Parser/builtin_types_compatible.c
test/Parser/char-literal-printing.c
test/Parser/check_cast.c
test/Parser/compound_literal.c
test/Parser/cxx-reference.cpp
test/Parser/function-decls.c
test/Parser/goto-ident.c
test/Parser/if-scope-c90.c
test/Parser/if-scope-c99.c
test/Parser/implicit-casts.c
test/Parser/ocu_vector_components.c
test/Parser/parmvardecl_conversion.c
test/Parser/pointer-arithmetic.c
test/Parser/pointer_promotion.c
test/Parser/recovery-1.c
test/Parser/typeof.c
test/Sema/arg-duplicate.c
test/Sema/arg-invalid.c
test/Sema/array-constraint.c
test/Sema/array-init.c
test/Sema/assign.c
test/Sema/c89.c
test/Sema/cfstring.c
test/Sema/compare.c
test/Sema/decl-invalid.c
test/Sema/default.c
test/Sema/enum.c
test/Sema/floating-point-compare.c
test/Sema/for.c
test/Sema/format-strings.c
test/Sema/id_not_builtin.m
test/Sema/if-empty-body.c
test/Sema/implicit-def.c
test/Sema/offsetof.c
test/Sema/return-stack-addr.cpp
test/Sema/selector-overload.m
test/Sema/switch-duplicate-defaults.c
test/Sema/switch.c
test/Sema/typedef-retain.c
test/Sema/unused-expr.c
test/Sema/void_arg.c

index d921248ccb9dc0df57e84f46a48ff6067e747231..e5185d04985c1a8da86fb04e77076f7e381c34b3 100644 (file)
@@ -50,10 +50,9 @@ Stats("stats", llvm::cl::desc("Print performance metrics and statistics"));
 
 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 @@ ProgAction(llvm::cl::desc("Choose output type:"), llvm::cl::ZeroOrMore,
                         "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 @@ static void ProcessInputFile(Preprocessor &PP, unsigned MainFileID,
     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;
 
index 444500d03d349aee920ca21f06e10ca2ab1ea038..30e6d92eee22a31ee7c5d3d4dd02da01334f8799 100644 (file)
@@ -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.
index 5d0f301b8d929ea593bd06912101a9ec9d6cb67d..6d7ca19cdb928fd469de67d5971328dc84861c91 100644 (file)
@@ -1,4 +1,4 @@
-/* RUN: clang -parse-ast -verify %s
+/* RUN: clang -fsyntax-only -verify %s
  */
 
 int x = 000000080;  /* expected-error {{invalid digit}} */
index 267416af28c1f690a295626164cfd346c2e4678b..dd889a1f001a37475f370fb6ee759dfeca12769b 100644 (file)
@@ -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 '('}}} */
index 4d1da43e25b89ab3ae0586650d5c95147cc4152c..9aadbceac139681ca5755515faebbc591342cb34 100644 (file)
@@ -1,4 +1,4 @@
-// RUN: clang -parse-ast -verify %s
+// RUN: clang -fsyntax-only -verify %s
 
 int foo() {
   {
index 2dce5ab4bd69e5d50b70f4d8ebde6e4c55c86567..d831d48b5a158f3d2438bbf28ed7ad1a0752d613 100644 (file)
@@ -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}} */
index ecd1237aad8b8d648eb188b50f5af6d5c3094cf0..7161d6c22b110aca77960b818015f605ecac9cff 100644 (file)
@@ -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)
index caad1f19c9b2bd736e595582a615ae84cd559c88..fab9fa303945c30570a9b59400affedea7e803a2 100644 (file)
@@ -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}} */
index 500c16adc3d8112f7ae9da8fbe813c804f4e3e19..6bed9ec666ba3a42d23b712badbc6fb22738eba0 100644 (file)
@@ -1,4 +1,4 @@
-// RUN: clang -parse-ast -verify %s
+// RUN: clang -fsyntax-only -verify %s
 
 struct foo { int a; };
 
index 096b40069784a441757d4aff3fb880e28bdf8c27..b8207841a433030d1da71836a806312b15727a2e 100644 (file)
@@ -1,4 +1,4 @@
-// RUN: clang -parse-ast -verify %s
+// RUN: clang -fsyntax-only -verify %s
 
 extern int funcInt(int);
 extern float funcFloat(float);
index 67196598d16766af9e3c1219e6da6f78c4e675ac..990b8f76e1a520a34abd7b0e9ee3cc341f9569b0 100644 (file)
@@ -1,4 +1,4 @@
-// RUN: clang -parse-ast-print %s
+// RUN: clang -ast-print %s
 
 #include <stddef.h>
 
index 8c329fcc9912864571908326dea46a2766c5237e..c69f0f0d03533acc3efe1a9b78b381e2512ad09a 100644 (file)
@@ -1,4 +1,4 @@
-// RUN: clang -parse-ast -verify %s
+// RUN: clang -fsyntax-only -verify %s
 struct foo {
   int a;
 };
index a5383cc40fa99ee8211dfcb77d154dee8943b58f..c6d665ca43beeed608d2ea883bc7a08147b2ff90 100644 (file)
@@ -1,4 +1,4 @@
-// RUN: clang -parse-ast -verify %s
+// RUN: clang -fsyntax-only -verify %s
 int main() {
   char *s;
   s = (char []){"whatever"}; 
index 955437916e11b33ea10a7c22bc0cbe5431201995..4f3b58c5d53ecfaff6309faf271dd542950a60b2 100644 (file)
@@ -1,4 +1,4 @@
-// RUN: clang -parse-ast -verify %s
+// RUN: clang -fsyntax-only -verify %s
 
 extern char *bork;
 char *& bar = bork;
index ef93756cc64fdaa8e79a3820efa3874970538866..3493baa156d8cbf1db8ae3f3968a18144ca7f7e6 100644 (file)
@@ -1,4 +1,4 @@
-/* RUN: clang %s -parse-ast-print
+/* RUN: clang %s -ast-print
  */
 
 void foo() {
index 7231445c79aaf650d1b37570d8faf25808974aa3..87d6ea5513d0170a7f0eb2737ea25349283c8e32 100644 (file)
@@ -1,4 +1,4 @@
-/* RUN: clang -parse-ast -verify %s
+/* RUN: clang -fsyntax-only -verify %s
 */
 
 void foo() { 
index 1623eb000938354ec193d58b52ff341728220254..43a3676ca487eaa3421c8cf8856ece2458a8d9b6 100644 (file)
@@ -1,4 +1,4 @@
-// RUN: clang -parse-ast -verify --std=c90 %s
+// RUN: clang -fsyntax-only -verify --std=c90 %s
 
 int f (int z)
 { 
index c6ce9b68735ff163f7d6c9c944a8a6790760c28d..41d7ae2e18158c12f0a81d1b1c3d2bd46621e07c 100644 (file)
@@ -1,4 +1,4 @@
-// RUN: clang -parse-ast -verify --std=c99 %s
+// RUN: clang -fsyntax-only -verify --std=c99 %s
 
 int f (int z)
 { 
index 320370dbfc606ebca3ae3a12832cc775f692cdcc..a07155eea40335a228f08c436b4f3d649492b6e8 100644 (file)
@@ -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;
index a47b9a8c9608b82ac0db4a5f5bc2616f3f9f0440..06084174af1c7ec92277fc01b3209821fa07d64f 100644 (file)
@@ -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;
index a3e2499b2ea4d0514f8bc0f24628835e25556b4e..81acc07b61c8977cfea87923036eabfa48cccca2 100644 (file)
@@ -1,4 +1,4 @@
-// RUN: clang -parse-ast -verify %s
+// RUN: clang -fsyntax-only -verify %s
 
 void f (int p[]) { p++; }
 
index 4403d20c11e05dd4130a096f614b46650d3dced1..3556c9aa4d40740896ac5f1e587c9c9b607b5157 100644 (file)
@@ -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; }
index 8d2e6e7a80c9ddf7e8947131cab444d7029cac1c..c648209bcf8fe53d333c8cd8390553407c1b94f4 100644 (file)
@@ -1,4 +1,4 @@
-// RUN: clang -parse-ast -verify %s
+// RUN: clang -fsyntax-only -verify %s
 
 int test() {
   void *vp;
index a098aecfc956f5f50673fa5f625f52d4bd7b77d4..b37c88cba07d21abd8abfd9e87b321e352a3995a 100644 (file)
@@ -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 ')'}} */
index e1fd6e4edb98b15a7ebbcd62148996836387b6d6..6c4e79cd161284918aa9e8ebecd9b7578c6acd50 100644 (file)
@@ -1,4 +1,4 @@
-// RUN: clang -parse-ast -verify %s
+// RUN: clang -fsyntax-only -verify %s
 
 typedef int TInt;
 
index 324e9fa27128bf5693bac1e1a9be193496046539..b57fd950bf104fa8f3f8d673391f4daec5258486 100644 (file)
@@ -1,4 +1,4 @@
-// RUN: clang -parse-ast -verify %s
+// RUN: clang -fsyntax-only -verify %s
 
 typedef int x; 
 int f3(y, x, 
index 29b51f4d88cc4ebf0f199525c84cd0ec3d97fd6e..03ce00acc451626b05173b26a9d4a7094184d4a4 100644 (file)
@@ -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}}
index 0533a8407e784d340e5db95c5fe7fed3a12d1a2d..ab2c969434df7378ff8e7378858b1d790da6f946 100644 (file)
@@ -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}}
index 0986354e27a24fc8e5cac595616f65048d93a4e2..510a7792d138bf8f95da54eff37c319390819930 100644 (file)
@@ -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)}}
 
index efeaffbee86dcf74ccb993fe07e8e53f8e6c3432..43f4ba7b9a5f2a0ec3dc3657498b3c43dabd79d6 100644 (file)
@@ -1,4 +1,4 @@
-// RUN: clang -parse-ast -verify %s
+// RUN: clang -fsyntax-only -verify %s
 
 void *test1(void) { return 0; }
 
index 87ac4fbb4ab19b61bb6f2233e86ff40c3d304b9f..7f26e99dfa8ad956b79659c6d304690b127ab0c7 100644 (file)
@@ -1,4 +1,4 @@
-/* RUN: clang %s -std=c89 -pedantic -parse-ast -verify
+/* RUN: clang %s -std=c89 -pedantic -fsyntax-only -verify
  */
 void test1() {
   {
index f9fdf3ac43589cb7e2204bf638b35654053e4612..d4a8552212cf325c5867191e89f70b6e6376d7c1 100644 (file)
@@ -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 }
index b31ace62bd553ff68393e89155e28e87c5bc5686..25d7a9169b94ba64deef9ac382e7cefeced615c5 100644 (file)
@@ -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);
index 61ad861fa8b6ec2e4a652e35059dbeb0b462fe3d..d241adcf2aef2d564eb7b6694e2f5a2d3202955c 100644 (file)
@@ -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}}
index 92f7278033f52dc1fe511eb919b50cf58a07758d..4efac17cfd1f8b0169e6dcbd8cee635e5d8fc8b8 100644 (file)
@@ -1,4 +1,4 @@
-// RUN: clang -parse-ast -verify %s
+// RUN: clang -fsyntax-only -verify %s
 
 void f5 (int z) { 
   if (z) 
index 1787c4b6f8248b1f35b9e21be33b0dd98e5d55c5..79a92c8f2d4932f7db358ebfad4da3a01647ce2d 100644 (file)
@@ -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'}}
index 0c84da26b044e4dc8097d4875f9b80dcbc02ed67..6adc2283453fc3007bf17bd15cf0e25a8cb9bc5d 100644 (file)
@@ -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 ==}}
index 42932f6e14fa26d537db2ae341d0397a255bcc24..c08f532688b4fff241b9f84dcc433b993be68ba5 100644 (file)
@@ -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);;); }
index be2706e4aa218e0ba9740a8be3a4ef870bf67fcf..83947cf7c356a98dc8f99f3bd883706fcc2dfccf 100644 (file)
@@ -1,4 +1,4 @@
-// RUN: clang -parse-ast -verify %s
+// RUN: clang -fsyntax-only -verify %s
 
 #include <stdio.h>
 #include <stdarg.h>
index 81988fad2ea20468c599a77e5718ad8a4ae4764e..519e6bab8fa4c7b0c8b94161581407a20a7ffac6 100644 (file)
@@ -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}}
 
index 1dc9e4481772fe5c403a684d407097dd20c4a03c..1de6ad573d4a0b032c86e3f31b4d146ef4b0c613 100644 (file)
@@ -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}}
index 942f091d7bbe31155b128804396ec8f4d882fd7a..ea42d0c1c801eff13081d8c826b8c091fe9b3a4e 100644 (file)
@@ -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() {
index 14b1440f5ed768f0171f531f20700ac823b112e7..3decec5ed4ddb7e050604dbc063d4d1fbfccc1a0 100644 (file)
@@ -1,4 +1,4 @@
-// RUN: clang -parse-ast -verify %s
+// RUN: clang -fsyntax-only -verify %s
 
 #define offsetof(TYPE, MEMBER) __builtin_offsetof (TYPE, MEMBER)
 
index 2e384a1bca0a8ec409c9c0d0f35b54215cf91b9b..5506f2fe86f4f4505d72e8d75554f3d5b29c9366 100644 (file)
@@ -1,4 +1,4 @@
-// RUN: clang -parse-ast -verify %s
+// RUN: clang -fsyntax-only -verify %s
 
 
 int* ret_local() {
index a542e57d2ba093db3c08898ee4bbc7110b4f1577..7cec1c246ec6aaa5bb62183dda3c11823cd52654 100644 (file)
@@ -1,4 +1,4 @@
-// RUN: clang %s -parse-ast
+// RUN: clang %s -fsyntax-only
 #import <Foundation/NSObject.h>
 
 struct D {
index d552c54d574e841723439353e3de429b1344a696..9ef683b48b9d0fea8491bcc543a0eeb364775579 100644 (file)
@@ -1,4 +1,4 @@
-// RUN: clang -parse-ast -verify %s
+// RUN: clang -fsyntax-only -verify %s
 
 void f (int z) { 
   switch(z) {
index b66695bc723b97aac06a18310693661754c1dee4..0e39175817ea444af27eea0b5add7ac5adb10855 100644 (file)
@@ -1,4 +1,4 @@
-// RUN: clang -parse-ast -verify %s
+// RUN: clang -fsyntax-only -verify %s
 
 void f (int z) { 
   while (z) { 
index 121e716844538f9bae4c523307d5ed18278213f8..9647c74702d4a8e445b5a821ef6d1cc70469050c 100644 (file)
@@ -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)));
index d398e74d2b149e592115027174bc07145166b2ce..305c2be06b575c76f02ae5a6cf7a2b0e57c63ad5 100644 (file)
@@ -1,4 +1,4 @@
-// RUN: clang -parse-ast -verify %s
+// RUN: clang -fsyntax-only -verify %s
 
 int foo(int X, int Y);
 
index b390f597283644c7b3c4c399509332b8c1d1e52d..ae5328a7e33ae9e21ed00fbd4908a693f8d385b5 100644 (file)
@@ -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;