clang API Documentation

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

#include <Expr.h>

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

List of all members.

Public Member Functions

 GNUNullExpr (QualType Ty, SourceLocation Loc)
 GNUNullExpr (EmptyShell Empty)
 Build an empty GNU __null expression.
SourceLocation getTokenLocation () const
 getTokenLocation - The location of the __null token.
void setTokenLocation (SourceLocation L)
SourceRange getSourceRange () const LLVM_READONLY
child_range children ()

Static Public Member Functions

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

Detailed Description

GNUNullExpr - Implements the GNU __null extension, which is a name for a null pointer constant that has integral type (e.g., int or long) and is the same size and alignment as a pointer. The __null extension is typically only used by system headers, which define NULL as __null in C++ rather than using 0 (which is an integer that may not match the size of a pointer).

Definition at line 3384 of file Expr.h.


Constructor & Destructor Documentation

clang::GNUNullExpr::GNUNullExpr ( QualType  Ty,
SourceLocation  Loc 
) [inline]

Definition at line 3389 of file Expr.h.

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

Build an empty GNU __null expression.

Definition at line 3395 of file Expr.h.


Member Function Documentation

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

Reimplemented from clang::Stmt.

Definition at line 3410 of file Expr.h.

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

Reimplemented from clang::Expr.

Definition at line 3404 of file Expr.h.

References clang::Stmt::getStmtClass().

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

Definition at line 3407 of file Expr.h.

SourceRange clang::GNUNullExpr::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 3401 of file Expr.h.

SourceLocation clang::GNUNullExpr::getTokenLocation ( ) const [inline]

getTokenLocation - The location of the __null token.

Definition at line 3398 of file Expr.h.

void clang::GNUNullExpr::setTokenLocation ( SourceLocation  L) [inline]

Definition at line 3399 of file Expr.h.


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