clang API Documentation

Public Member Functions | Static Public Member Functions
clang::ObjCEncodeExpr Class Reference

#include <ExprObjC.h>

Inheritance diagram for clang::ObjCEncodeExpr:
Inheritance graph
[legend]
Collaboration diagram for clang::ObjCEncodeExpr:
Collaboration graph
[legend]

List of all members.

Public Member Functions

 ObjCEncodeExpr (QualType T, TypeSourceInfo *EncodedType, SourceLocation at, SourceLocation rp)
 ObjCEncodeExpr (EmptyShell Empty)
SourceLocation getAtLoc () const
void setAtLoc (SourceLocation L)
SourceLocation getRParenLoc () const
void setRParenLoc (SourceLocation L)
QualType getEncodedType () const
TypeSourceInfogetEncodedTypeSourceInfo () const
void setEncodedTypeSourceInfo (TypeSourceInfo *EncType)
SourceRange getSourceRange () const LLVM_READONLY
child_range children ()

Static Public Member Functions

static bool classof (const Stmt *T)
static bool classof (const ObjCEncodeExpr *)

Detailed Description

ObjCEncodeExpr, used for in Objective-C. has the same type and behavior as StringLiteral except that the string initializer is obtained from ASTContext with the encoding type as an argument.

Definition at line 340 of file ExprObjC.h.


Constructor & Destructor Documentation

clang::ObjCEncodeExpr::ObjCEncodeExpr ( QualType  T,
TypeSourceInfo EncodedType,
SourceLocation  at,
SourceLocation  rp 
) [inline]

Definition at line 344 of file ExprObjC.h.

clang::ObjCEncodeExpr::ObjCEncodeExpr ( EmptyShell  Empty) [inline, explicit]

Definition at line 353 of file ExprObjC.h.


Member Function Documentation

child_range clang::ObjCEncodeExpr::children ( ) [inline]

Reimplemented from clang::Stmt.

Definition at line 378 of file ExprObjC.h.

static bool clang::ObjCEncodeExpr::classof ( const Stmt T) [inline, static]

Reimplemented from clang::Expr.

Definition at line 372 of file ExprObjC.h.

References clang::Stmt::getStmtClass().

static bool clang::ObjCEncodeExpr::classof ( const ObjCEncodeExpr ) [inline, static]

Definition at line 375 of file ExprObjC.h.

SourceLocation clang::ObjCEncodeExpr::getAtLoc ( ) const [inline]

Definition at line 356 of file ExprObjC.h.

QualType clang::ObjCEncodeExpr::getEncodedType ( ) const [inline]
TypeSourceInfo* clang::ObjCEncodeExpr::getEncodedTypeSourceInfo ( ) const [inline]

Definition at line 363 of file ExprObjC.h.

SourceLocation clang::ObjCEncodeExpr::getRParenLoc ( ) const [inline]

Definition at line 358 of file ExprObjC.h.

SourceRange clang::ObjCEncodeExpr::getSourceRange ( ) const [inline]

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.

Reimplemented from clang::Stmt.

Definition at line 368 of file ExprObjC.h.

void clang::ObjCEncodeExpr::setAtLoc ( SourceLocation  L) [inline]

Definition at line 357 of file ExprObjC.h.

void clang::ObjCEncodeExpr::setEncodedTypeSourceInfo ( TypeSourceInfo EncType) [inline]

Definition at line 364 of file ExprObjC.h.

void clang::ObjCEncodeExpr::setRParenLoc ( SourceLocation  L) [inline]

Definition at line 359 of file ExprObjC.h.


The documentation for this class was generated from the following file: