clang API Documentation
#include <ExprObjC.h>


ObjCImplicitSetterGetterRefExpr - A dot-syntax expression to access two methods; one to set a value to an 'ivar' (Setter) and the other to access an 'ivar' (Setter). An example for use of this AST is:
@interface Test { } - (Test *)crash; - (void)setCrash: (Test*)value; @end void foo(Test *p1, Test *p2) { p2.crash = p1.crash; // Uses ObjCImplicitSetterGetterRefExpr AST }
Definition at line 321 of file ExprObjC.h.
| clang::ObjCImplicitSetterGetterRefExpr::ObjCImplicitSetterGetterRefExpr | ( | ObjCMethodDecl * | getter, | |
| QualType | t, | |||
| ExprValueKind | VK, | |||
| ExprObjectKind | OK, | |||
| ObjCMethodDecl * | setter, | |||
| SourceLocation | l, | |||
| Expr * | base | |||
| ) | [inline] |
Definition at line 345 of file ExprObjC.h.
| clang::ObjCImplicitSetterGetterRefExpr::ObjCImplicitSetterGetterRefExpr | ( | ObjCMethodDecl * | getter, | |
| QualType | t, | |||
| ExprValueKind | VK, | |||
| ExprObjectKind | OK, | |||
| ObjCMethodDecl * | setter, | |||
| SourceLocation | l, | |||
| SourceLocation | sl, | |||
| QualType | st | |||
| ) | [inline] |
Definition at line 354 of file ExprObjC.h.
| clang::ObjCImplicitSetterGetterRefExpr::ObjCImplicitSetterGetterRefExpr | ( | ObjCMethodDecl * | getter, | |
| QualType | t, | |||
| ExprValueKind | VK, | |||
| ExprObjectKind | OK, | |||
| ObjCMethodDecl * | setter, | |||
| SourceLocation | l, | |||
| ObjCInterfaceDecl * | C, | |||
| SourceLocation | CL | |||
| ) | [inline] |
Definition at line 367 of file ExprObjC.h.
| clang::ObjCImplicitSetterGetterRefExpr::ObjCImplicitSetterGetterRefExpr | ( | EmptyShell | Empty | ) | [inline, explicit] |
Definition at line 374 of file ExprObjC.h.
| Stmt::child_iterator ObjCImplicitSetterGetterRefExpr::child_begin | ( | ) | [virtual] |
| Stmt::child_iterator ObjCImplicitSetterGetterRefExpr::child_end | ( | ) | [virtual] |
| static bool clang::ObjCImplicitSetterGetterRefExpr::classof | ( | const ObjCImplicitSetterGetterRefExpr * | ) | [inline, static] |
Definition at line 409 of file ExprObjC.h.
| static bool clang::ObjCImplicitSetterGetterRefExpr::classof | ( | const Stmt * | T | ) | [inline, static] |
Reimplemented from clang::Expr.
Definition at line 406 of file ExprObjC.h.
References clang::Stmt::getStmtClass().
| Expr* clang::ObjCImplicitSetterGetterRefExpr::getBase | ( | ) | [inline] |
Definition at line 392 of file ExprObjC.h.
| const Expr* clang::ObjCImplicitSetterGetterRefExpr::getBase | ( | ) | const [inline] |
Definition at line 391 of file ExprObjC.h.
Referenced by clang::CodeGen::CodeGenFunction::EmitObjCPropertyGet(), getSourceRange(), clang::Expr::isUnusedResultAWarning(), and clang::ASTStmtWriter::VisitObjCImplicitSetterGetterRefExpr().
| SourceLocation clang::ObjCImplicitSetterGetterRefExpr::getClassLoc | ( | ) | const [inline] |
Definition at line 397 of file ExprObjC.h.
Referenced by clang::ASTStmtWriter::VisitObjCImplicitSetterGetterRefExpr().
| ObjCMethodDecl* clang::ObjCImplicitSetterGetterRefExpr::getGetterMethod | ( | ) | const [inline] |
Definition at line 377 of file ExprObjC.h.
Referenced by clang::CodeGen::CodeGenFunction::EmitObjCPropertyGet(), and clang::ASTStmtWriter::VisitObjCImplicitSetterGetterRefExpr().
| ObjCInterfaceDecl* clang::ObjCImplicitSetterGetterRefExpr::getInterfaceDecl | ( | ) | const [inline] |
Definition at line 379 of file ExprObjC.h.
Referenced by clang::CodeGen::CodeGenFunction::EmitObjCPropertyGet(), and clang::ASTStmtWriter::VisitObjCImplicitSetterGetterRefExpr().
| SourceLocation clang::ObjCImplicitSetterGetterRefExpr::getLocation | ( | ) | const [inline] |
Definition at line 395 of file ExprObjC.h.
Referenced by clang::Expr::isUnusedResultAWarning(), and clang::ASTStmtWriter::VisitObjCImplicitSetterGetterRefExpr().
| ObjCMethodDecl* clang::ObjCImplicitSetterGetterRefExpr::getSetterMethod | ( | ) | const [inline] |
Definition at line 378 of file ExprObjC.h.
Referenced by clang::ASTStmtWriter::VisitObjCImplicitSetterGetterRefExpr().
| virtual SourceRange clang::ObjCImplicitSetterGetterRefExpr::getSourceRange | ( | ) | const [inline, virtual] |
SourceLocation tokens are not useful in isolation - they are low level value objects created/interpreted by SourceManager. We assume AST clients will have a pointer to the respective SourceManager.
Implements clang::Expr.
Definition at line 384 of file ExprObjC.h.
References getBase(), clang::Stmt::getLocStart(), getSuperLocation(), and isSuperReceiver().
| SourceLocation clang::ObjCImplicitSetterGetterRefExpr::getSuperLocation | ( | ) | const [inline] |
Definition at line 400 of file ExprObjC.h.
Referenced by getSourceRange(), and clang::ASTStmtWriter::VisitObjCImplicitSetterGetterRefExpr().
| QualType clang::ObjCImplicitSetterGetterRefExpr::getSuperType | ( | ) | const [inline] |
Definition at line 401 of file ExprObjC.h.
Referenced by clang::ASTStmtWriter::VisitObjCImplicitSetterGetterRefExpr().
| bool clang::ObjCImplicitSetterGetterRefExpr::isSuperReceiver | ( | ) | const [inline] |
When the receiver in dot-syntax expression is 'super', this method returns true if both Base expression and Interface are null.
Definition at line 404 of file ExprObjC.h.
Referenced by child_begin(), child_end(), clang::CodeGen::CodeGenFunction::EmitObjCPropertyGet(), and getSourceRange().
| void clang::ObjCImplicitSetterGetterRefExpr::setBase | ( | Expr * | base | ) | [inline] |
Definition at line 393 of file ExprObjC.h.
Referenced by clang::ASTStmtReader::VisitObjCImplicitSetterGetterRefExpr().
| void clang::ObjCImplicitSetterGetterRefExpr::setClassLoc | ( | SourceLocation | L | ) | [inline] |
Definition at line 398 of file ExprObjC.h.
Referenced by clang::ASTStmtReader::VisitObjCImplicitSetterGetterRefExpr().
| void clang::ObjCImplicitSetterGetterRefExpr::setGetterMethod | ( | ObjCMethodDecl * | D | ) | [inline] |
Definition at line 380 of file ExprObjC.h.
Referenced by clang::ASTStmtReader::VisitObjCImplicitSetterGetterRefExpr().
| void clang::ObjCImplicitSetterGetterRefExpr::setInterfaceDecl | ( | ObjCInterfaceDecl * | D | ) | [inline] |
Definition at line 382 of file ExprObjC.h.
Referenced by clang::ASTStmtReader::VisitObjCImplicitSetterGetterRefExpr().
| void clang::ObjCImplicitSetterGetterRefExpr::setLocation | ( | SourceLocation | L | ) | [inline] |
Definition at line 396 of file ExprObjC.h.
Referenced by clang::ASTStmtReader::VisitObjCImplicitSetterGetterRefExpr().
| void clang::ObjCImplicitSetterGetterRefExpr::setSetterMethod | ( | ObjCMethodDecl * | D | ) | [inline] |
Definition at line 381 of file ExprObjC.h.
Referenced by clang::ASTStmtReader::VisitObjCImplicitSetterGetterRefExpr().
friend class ASTStmtReader [friend] |
Definition at line 416 of file ExprObjC.h.