clang API Documentation

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

#include <ExprObjC.h>

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

List of all members.

Public Member Functions

 ObjCStringLiteral (StringLiteral *SL, QualType T, SourceLocation L)
 ObjCStringLiteral (EmptyShell Empty)
StringLiteralgetString ()
const StringLiteralgetString () const
void setString (StringLiteral *S)
SourceLocation getAtLoc () const
void setAtLoc (SourceLocation L)
SourceRange getSourceRange () const LLVM_READONLY
child_range children ()

Static Public Member Functions

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

Detailed Description

ObjCStringLiteral, used for Objective-C string literals i.e. "foo".

Definition at line 29 of file ExprObjC.h.


Constructor & Destructor Documentation

clang::ObjCStringLiteral::ObjCStringLiteral ( StringLiteral SL,
QualType  T,
SourceLocation  L 
) [inline]

Definition at line 33 of file ExprObjC.h.

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

Definition at line 37 of file ExprObjC.h.


Member Function Documentation

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

Reimplemented from clang::Stmt.

Definition at line 57 of file ExprObjC.h.

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

Reimplemented from clang::Expr.

Definition at line 51 of file ExprObjC.h.

References clang::Stmt::getStmtClass().

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

Definition at line 54 of file ExprObjC.h.

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

Definition at line 44 of file ExprObjC.h.

SourceRange clang::ObjCStringLiteral::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 47 of file ExprObjC.h.

References clang::Stmt::getLocEnd().

StringLiteral* clang::ObjCStringLiteral::getString ( ) [inline]

Definition at line 40 of file ExprObjC.h.

Referenced by clang::CodeGen::CodeGenFunction::EmitObjCStringLiteral().

const StringLiteral* clang::ObjCStringLiteral::getString ( ) const [inline]

Definition at line 41 of file ExprObjC.h.

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

Definition at line 45 of file ExprObjC.h.

void clang::ObjCStringLiteral::setString ( StringLiteral S) [inline]

Definition at line 42 of file ExprObjC.h.

References S.


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