diff options
author | Fariborz Jahanian <fjahanian@apple.com> | 2009-08-20 17:02:02 +0000 |
---|---|---|
committer | Fariborz Jahanian <fjahanian@apple.com> | 2009-08-20 17:02:02 +0000 |
commit | 09105f52b1f28cbb1374c27c3c70f5517e2c465d (patch) | |
tree | 1d955a27771346170a17f4440aab351679a7e735 /lib/AST/Expr.cpp | |
parent | b983744cccb7e2e5c2bc96de3dcc090ed17fa392 (diff) |
Using "ObjCImplicitSetterGetterRefExpr" instead of "ObjCImplctSetterGetterRefExpr".
A field rename and more comments.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@79537 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/AST/Expr.cpp')
-rw-r--r-- | lib/AST/Expr.cpp | 20 |
1 files changed, 10 insertions, 10 deletions
diff --git a/lib/AST/Expr.cpp b/lib/AST/Expr.cpp index 225f177903..7cc436c7a9 100644 --- a/lib/AST/Expr.cpp +++ b/lib/AST/Expr.cpp @@ -542,10 +542,10 @@ bool Expr::isUnusedResultAWarning(SourceLocation &Loc, SourceRange &R1, case ObjCMessageExprClass: return false; - case ObjCImplctSetterGetterRefExprClass: { // Dot syntax for message send. + case ObjCImplicitSetterGetterRefExprClass: { // Dot syntax for message send. #if 0 - const ObjCImplctSetterGetterRefExpr *Ref = - cast<ObjCImplctSetterGetterRefExpr>(this); + const ObjCImplicitSetterGetterRefExpr *Ref = + cast<ObjCImplicitSetterGetterRefExpr>(this); // FIXME: We really want the location of the '.' here. Loc = Ref->getLocation(); R1 = SourceRange(Ref->getLocation(), Ref->getLocation()); @@ -794,7 +794,7 @@ Expr::isLvalueResult Expr::isLvalueInternal(ASTContext &Ctx) const { return LV_Valid; case ObjCPropertyRefExprClass: // FIXME: check if read-only property. return LV_Valid; - case ObjCImplctSetterGetterRefExprClass: // FIXME: check if read-only property. + case ObjCImplicitSetterGetterRefExprClass: // FIXME: check if read-only property. return LV_Valid; case PredefinedExprClass: return LV_Valid; @@ -915,9 +915,9 @@ Expr::isModifiableLvalue(ASTContext &Ctx, SourceLocation *Loc) const { } // Assigning to an 'implicit' property? - else if (isa<ObjCImplctSetterGetterRefExpr>(this)) { - const ObjCImplctSetterGetterRefExpr* Expr = - cast<ObjCImplctSetterGetterRefExpr>(this); + else if (isa<ObjCImplicitSetterGetterRefExpr>(this)) { + const ObjCImplicitSetterGetterRefExpr* Expr = + cast<ObjCImplicitSetterGetterRefExpr>(this); if (Expr->getSetterMethod() == 0) return MLV_NoSetterProperty; } @@ -1863,11 +1863,11 @@ Stmt::child_iterator ObjCIvarRefExpr::child_end() { return &Base+1; } Stmt::child_iterator ObjCPropertyRefExpr::child_begin() { return &Base; } Stmt::child_iterator ObjCPropertyRefExpr::child_end() { return &Base+1; } -// ObjCImplctSetterGetterRefExpr -Stmt::child_iterator ObjCImplctSetterGetterRefExpr::child_begin() { +// ObjCImplicitSetterGetterRefExpr +Stmt::child_iterator ObjCImplicitSetterGetterRefExpr::child_begin() { return &Base; } -Stmt::child_iterator ObjCImplctSetterGetterRefExpr::child_end() { +Stmt::child_iterator ObjCImplicitSetterGetterRefExpr::child_end() { return &Base+1; } |