]> granicus.if.org Git - clang/commitdiff
rename Parser::ParseObjCSelector -> Parser::ParseObjCSelectorPiece,
authorChris Lattner <sabre@nondot.org>
Sat, 11 Apr 2009 18:13:45 +0000 (18:13 +0000)
committerChris Lattner <sabre@nondot.org>
Sat, 11 Apr 2009 18:13:45 +0000 (18:13 +0000)
since it only parses one identifier out of the selector, not the
whole thing.

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

include/clang/Parse/Parser.h
lib/Parse/ParseObjc.cpp

index 85f6d50ebbb94b9679e44d07ca74ea65721db980..3e09a2cc53507ec91ef06e607d96375ecdadc3f3 100644 (file)
@@ -584,7 +584,7 @@ private:
   DeclPtrTy ParseObjCPropertySynthesize(SourceLocation atLoc);
   DeclPtrTy ParseObjCPropertyDynamic(SourceLocation atLoc);
   
-  IdentifierInfo *ParseObjCSelector(SourceLocation &MethodLocation);
+  IdentifierInfo *ParseObjCSelectorPiece(SourceLocation &MethodLocation);
   // Definitions for Objective-c context sensitive keywords recognition.
   enum ObjCTypeQual {
     objc_in=0, objc_out, objc_inout, objc_oneway, objc_bycopy, objc_byref,
index bac3f91d0af781fa6dc7f95f3f04ad3b2be9db55..42ec8572513f6a77b88b2dd1d969f7ece3bd9192 100644 (file)
@@ -477,7 +477,7 @@ Parser::DeclPtrTy Parser::ParseObjCMethodPrototype(DeclPtrTy IDecl,
 ///       unsigned long const short volatile signed restrict _Complex
 ///       in out inout bycopy byref oneway int char float double void _Bool
 ///
-IdentifierInfo *Parser::ParseObjCSelector(SourceLocation &SelectorLoc) {
+IdentifierInfo *Parser::ParseObjCSelectorPiece(SourceLocation &SelectorLoc) {
   switch (Tok.getKind()) {
   default:
     return 0;
@@ -678,7 +678,7 @@ Parser::DeclPtrTy Parser::ParseObjCMethodDecl(SourceLocation mLoc,
     ReturnType = ParseObjCTypeName(DSRet);
   
   SourceLocation selLoc;
-  IdentifierInfo *SelIdent = ParseObjCSelector(selLoc);
+  IdentifierInfo *SelIdent = ParseObjCSelectorPiece(selLoc);
 
   // An unnamed colon is valid.
   if (!SelIdent && Tok.isNot(tok::colon)) { // missing selector name.
@@ -739,7 +739,7 @@ Parser::DeclPtrTy Parser::ParseObjCMethodDecl(SourceLocation mLoc,
     
     // Check for another keyword selector.
     SourceLocation Loc;
-    SelIdent = ParseObjCSelector(Loc);
+    SelIdent = ParseObjCSelectorPiece(Loc);
     if (!SelIdent && Tok.isNot(tok::colon))
       break;
     // We have a selector or a colon, continue parsing.
@@ -1494,7 +1494,7 @@ Parser::ParseObjCMessageExpressionBody(SourceLocation LBracLoc,
                                        ExprArg ReceiverExpr) {
   // Parse objc-selector
   SourceLocation Loc;
-  IdentifierInfo *selIdent = ParseObjCSelector(Loc);
+  IdentifierInfo *selIdent = ParseObjCSelectorPiece(Loc);
 
   SourceLocation SelectorLoc = Loc;
     
@@ -1530,7 +1530,7 @@ Parser::ParseObjCMessageExpressionBody(SourceLocation LBracLoc,
       KeyExprs.push_back(Res.release());
 
       // Check for another keyword selector.
-      selIdent = ParseObjCSelector(Loc);
+      selIdent = ParseObjCSelectorPiece(Loc);
       if (!selIdent && Tok.isNot(tok::colon))
         break;
       // We have a selector or a colon, continue parsing.
@@ -1677,7 +1677,7 @@ Parser::ParseObjCSelectorExpression(SourceLocation AtLoc) {
   llvm::SmallVector<IdentifierInfo *, 12> KeyIdents;
   SourceLocation LParenLoc = ConsumeParen();
   SourceLocation sLoc;
-  IdentifierInfo *SelIdent = ParseObjCSelector(sLoc);
+  IdentifierInfo *SelIdent = ParseObjCSelectorPiece(sLoc);
   if (!SelIdent && Tok.isNot(tok::colon)) // missing selector name.
     return ExprError(Diag(Tok, diag::err_expected_ident));
 
@@ -1694,7 +1694,7 @@ Parser::ParseObjCSelectorExpression(SourceLocation AtLoc) {
         break;
       // Check for another keyword selector.
       SourceLocation Loc;
-      SelIdent = ParseObjCSelector(Loc);
+      SelIdent = ParseObjCSelectorPiece(Loc);
       KeyIdents.push_back(SelIdent);
       if (!SelIdent && Tok.isNot(tok::colon))
         break;