diff options
author | Steve Naroff <snaroff@apple.com> | 2009-01-28 19:39:02 +0000 |
---|---|---|
committer | Steve Naroff <snaroff@apple.com> | 2009-01-28 19:39:02 +0000 |
commit | b43a50ff1b0b171ece84425b0ad83a9a31f038fa (patch) | |
tree | 3b111985bb883a4d00bd6b9547adc04759a88ece /lib/Parse/ParseDecl.cpp | |
parent | 64134057d2e859c78e24570fe3cf238975a02b0d (diff) |
Name change (isTypeName->getTypeName).
Since it doesn't return a bool, is shouldn't be prefixed with 'is'.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@63226 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/Parse/ParseDecl.cpp')
-rw-r--r-- | lib/Parse/ParseDecl.cpp | 14 |
1 files changed, 7 insertions, 7 deletions
diff --git a/lib/Parse/ParseDecl.cpp b/lib/Parse/ParseDecl.cpp index dc6768f999..eb5cedd5f4 100644 --- a/lib/Parse/ParseDecl.cpp +++ b/lib/Parse/ParseDecl.cpp @@ -484,8 +484,8 @@ void Parser::ParseDeclarationSpecifiers(DeclSpec &DS, GetLookAheadToken(2).is(tok::l_paren)) goto DoneWithDeclSpec; - TypeTy *TypeRep = Actions.isTypeName(*NextToken().getIdentifierInfo(), - CurScope, &SS); + TypeTy *TypeRep = Actions.getTypeName(*NextToken().getIdentifierInfo(), + CurScope, &SS); if (TypeRep == 0) goto DoneWithDeclSpec; @@ -538,7 +538,7 @@ void Parser::ParseDeclarationSpecifiers(DeclSpec &DS, goto DoneWithDeclSpec; // It has to be available as a typedef too! - TypeTy *TypeRep = Actions.isTypeName(*Tok.getIdentifierInfo(), CurScope); + TypeTy *TypeRep = Actions.getTypeName(*Tok.getIdentifierInfo(), CurScope); if (TypeRep == 0) goto DoneWithDeclSpec; @@ -1736,8 +1736,8 @@ void Parser::ParseDirectDeclarator(Declarator &D) { // If this identifier is the name of the current class, it's a // constructor name. else if (Actions.isCurrentClassName(*Tok.getIdentifierInfo(), CurScope)) - D.setConstructor(Actions.isTypeName(*Tok.getIdentifierInfo(), - CurScope), + D.setConstructor(Actions.getTypeName(*Tok.getIdentifierInfo(), + CurScope), Tok.getLocation()); // This is a normal identifier. else @@ -1994,7 +1994,7 @@ void Parser::ParseFunctionDeclarator(SourceLocation LParenLoc, Declarator &D, // K&R-style function: void foo(a,b,c) if (!getLang().CPlusPlus && Tok.is(tok::identifier)) { - TypeTy *TypeRep = Actions.isTypeName(*Tok.getIdentifierInfo(), CurScope); + TypeTy *TypeRep = Actions.getTypeName(*Tok.getIdentifierInfo(), CurScope); if (TypeRep) { // This is a typename. Replace the current token in-place with an // annotation type token. @@ -2203,7 +2203,7 @@ void Parser::ParseFunctionDeclaratorIdentifierList(SourceLocation LParenLoc, IdentifierInfo *ParmII = Tok.getIdentifierInfo(); // Reject 'typedef int y; int test(x, y)', but continue parsing. - if (Actions.isTypeName(*ParmII, CurScope)) + if (Actions.getTypeName(*ParmII, CurScope)) Diag(Tok, diag::err_unexpected_typedef_ident) << ParmII; // Verify that the argument identifier has not already been mentioned. |