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)
SourceLocation getLocStart () const LLVM_READONLY
SourceLocation getLocEnd () const LLVM_READONLY
child_range children ()

Static Public Member Functions

static bool classof (const Stmt *T)

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 3640 of file Expr.h.


Constructor & Destructor Documentation

Definition at line 3645 of file Expr.h.

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

Build an empty GNU __null expression.

Definition at line 3651 of file Expr.h.


Member Function Documentation

Reimplemented from clang::Stmt.

Definition at line 3665 of file Expr.h.

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

Reimplemented from clang::Expr.

Definition at line 3660 of file Expr.h.

References clang::Stmt::getStmtClass().

Reimplemented from clang::Stmt.

Definition at line 3658 of file Expr.h.

Reimplemented from clang::Stmt.

Definition at line 3657 of file Expr.h.

getTokenLocation - The location of the __null token.

Definition at line 3654 of file Expr.h.

Definition at line 3655 of file Expr.h.


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