[cfe-commits] r161714 - in /cfe/trunk: include/clang/Parse/Parser.h lib/Parse/Parser.cpp

Fariborz Jahanian fjahanian at apple.com
Fri Aug 10 15:28:14 PDT 2012


Author: fjahanian
Date: Fri Aug 10 17:28:13 2012
New Revision: 161714

URL: http://llvm.org/viewvc/llvm-project?rev=161714&view=rev
Log:
Removed an unused function I added a while back.


Modified:
    cfe/trunk/include/clang/Parse/Parser.h
    cfe/trunk/lib/Parse/Parser.cpp

Modified: cfe/trunk/include/clang/Parse/Parser.h
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/include/clang/Parse/Parser.h?rev=161714&r1=161713&r2=161714&view=diff
==============================================================================
--- cfe/trunk/include/clang/Parse/Parser.h (original)
+++ cfe/trunk/include/clang/Parse/Parser.h Fri Aug 10 17:28:13 2012
@@ -1057,7 +1057,6 @@
                                           ParsingDeclSpec *DS = 0);
   bool isDeclarationAfterDeclarator();
   bool isStartOfFunctionDefinition(const ParsingDeclarator &Declarator);
-  bool isStartOfDelayParsedFunctionDefinition(const ParsingDeclarator &Declarator);
   DeclGroupPtrTy ParseDeclarationOrFunctionDefinition(
                                                   ParsedAttributesWithRange &attrs,
                                                   ParsingDeclSpec *DS = 0,

Modified: cfe/trunk/lib/Parse/Parser.cpp
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/lib/Parse/Parser.cpp?rev=161714&r1=161713&r2=161714&view=diff
==============================================================================
--- cfe/trunk/lib/Parse/Parser.cpp (original)
+++ cfe/trunk/lib/Parse/Parser.cpp Fri Aug 10 17:28:13 2012
@@ -808,27 +808,6 @@
          Tok.is(tok::kw_try);          // X() try { ... }
 }
 
-/// \brief Determine whether the current token, if it occurs after a
-/// a function declarator, indicates the start of a function definition
-/// inside an objective-C class implementation and thus can be delay parsed. 
-bool Parser::isStartOfDelayParsedFunctionDefinition(
-                                       const ParsingDeclarator &Declarator) {
-  if (!CurParsedObjCImpl ||
-      !Declarator.isFunctionDeclarator())
-    return false;
-  if (Tok.is(tok::l_brace))   // int X() {}
-    return true;
-
-  // Handle K&R C argument lists: int X(f) int f; {}
-  if (!getLangOpts().CPlusPlus &&
-      Declarator.getFunctionTypeInfo().isKNRPrototype()) 
-    return isDeclarationSpecifier();
-  
-  return getLangOpts().CPlusPlus &&
-           (Tok.is(tok::colon) ||         // X() : Base() {} (used for ctors)
-            Tok.is(tok::kw_try));          // X() try { ... }
-}
-
 /// ParseDeclarationOrFunctionDefinition - Parse either a function-definition or
 /// a declaration.  We can't tell which we have until we read up to the
 /// compound-statement in function-definition. TemplateParams, if





More information about the cfe-commits mailing list