diff options
author | Chris Lattner <sabre@nondot.org> | 2009-04-11 18:13:45 +0000 |
---|---|---|
committer | Chris Lattner <sabre@nondot.org> | 2009-04-11 18:13:45 +0000 |
commit | 4f472a325a9e322b6853f7834d513ed46059cb67 (patch) | |
tree | bbeeb15756201801b09b77441e55d72ea4662050 /clang/lib | |
parent | a9d0ffe57ebd29da49ab722a25d37f58a0c91dc8 (diff) | |
download | bcm5719-llvm-4f472a325a9e322b6853f7834d513ed46059cb67.tar.gz bcm5719-llvm-4f472a325a9e322b6853f7834d513ed46059cb67.zip |
rename Parser::ParseObjCSelector -> Parser::ParseObjCSelectorPiece,
since it only parses one identifier out of the selector, not the
whole thing.
llvm-svn: 68867
Diffstat (limited to 'clang/lib')
-rw-r--r-- | clang/lib/Parse/ParseObjc.cpp | 14 |
1 files changed, 7 insertions, 7 deletions
diff --git a/clang/lib/Parse/ParseObjc.cpp b/clang/lib/Parse/ParseObjc.cpp index bac3f91d0af..42ec8572513 100644 --- a/clang/lib/Parse/ParseObjc.cpp +++ b/clang/lib/Parse/ParseObjc.cpp @@ -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; |