diff tools/clang/lib/Parse/Parser.cpp @ 39:d93fae3b865e

create __CbC_return declaration statement and return1's assignment statement automarically when we found __return
author Kaito Tokumori <e105711@ie.u-ryukyu.ac.jp>
date Thu, 19 Dec 2013 00:11:02 +0900
parents 2b67512dc318
children 5b813d18f000
line wrap: on
line diff
--- a/tools/clang/lib/Parse/Parser.cpp	Tue Dec 17 21:59:45 2013 +0900
+++ b/tools/clang/lib/Parse/Parser.cpp	Thu Dec 19 00:11:02 2013 +0900
@@ -887,16 +887,7 @@
                                        ParsingDeclSpec &DS,
                                        AccessSpecifier AS) {
   // Parse the common declaration-specifiers piece.
-#ifndef noCbC
-  bool isCbC_envKw = false;
-  DeclGroupPtrTy retDecl;
-  ParseDeclarationSpecifiers(DS, ParsedTemplateInfo(), AS_none, DSC_top_level, 0, &isCbC_envKw, Declarator::FileContext, &retDecl);
-  if(isCbC_envKw){
-    return retDecl;
-  }
-#else
   ParseDeclarationSpecifiers(DS, ParsedTemplateInfo(), AS, DSC_top_level);
-#endif
 
   // If we had a free-standing type definition with a missing semicolon, we
   // may get this far before the problem becomes obvious.