From: Richard Trieu Date: Fri, 9 Sep 2011 02:16:15 +0000 (+0000) Subject: Change references to StmtTy to Stmt and removed typedefs of StmtTy. Also removed... X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=b2fc69097d15f6374b9e5e6101f33960c34acbed;p=clang Change references to StmtTy to Stmt and removed typedefs of StmtTy. Also removed typedef of AttrTy since it is not used. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@139349 91177308-0d34-0410-b5e6-96231b3b80d8 --- diff --git a/include/clang/Parse/Parser.h b/include/clang/Parse/Parser.h index e4956b5b2d..d7bcfbe8ad 100644 --- a/include/clang/Parse/Parser.h +++ b/include/clang/Parse/Parser.h @@ -195,7 +195,6 @@ public: // Type forwarding. All of these are statically 'void*', but they may all be // different actual classes based on the actions in place. - typedef Stmt StmtTy; typedef OpaquePtr DeclGroupPtrTy; typedef CXXBaseSpecifier BaseTy; typedef CXXCtorInitializer MemInitTy; diff --git a/include/clang/Sema/Sema.h b/include/clang/Sema/Sema.h index fc2a7f55c4..17db5929e8 100644 --- a/include/clang/Sema/Sema.h +++ b/include/clang/Sema/Sema.h @@ -177,10 +177,8 @@ public: typedef OpaquePtr DeclGroupPtrTy; typedef OpaquePtr TemplateTy; typedef OpaquePtr TypeTy; - typedef Attr AttrTy; typedef CXXBaseSpecifier BaseTy; typedef CXXCtorInitializer MemInitTy; - typedef Stmt StmtTy; typedef TemplateParameterList TemplateParamsTy; typedef NestedNameSpecifier CXXScopeTy; diff --git a/lib/Parse/ParseStmt.cpp b/lib/Parse/ParseStmt.cpp index 5ba6ff9da4..dd5006760b 100644 --- a/lib/Parse/ParseStmt.cpp +++ b/lib/Parse/ParseStmt.cpp @@ -497,7 +497,7 @@ StmtResult Parser::ParseCaseStatement(ParsedAttributes &attrs, bool MissingCase, // DeepestParsedCaseStmt - This is the deepest statement we have parsed, which // gets updated each time a new case is parsed, and whose body is unset so // far. When parsing 'case 4', this is the 'case 3' node. - StmtTy *DeepestParsedCaseStmt = 0; + Stmt *DeepestParsedCaseStmt = 0; // While we have case statements, eat and stack them. SourceLocation ColonLoc;