clang API Documentation
#include <Expr.h>
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) |
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).
clang::GNUNullExpr::GNUNullExpr | ( | QualType | Ty, |
SourceLocation | Loc | ||
) | [inline] |
clang::GNUNullExpr::GNUNullExpr | ( | EmptyShell | Empty | ) | [inline, explicit] |
child_range clang::GNUNullExpr::children | ( | ) | [inline] |
Reimplemented from clang::Stmt.
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().
SourceLocation clang::GNUNullExpr::getLocEnd | ( | ) | const [inline] |
Reimplemented from clang::Stmt.
SourceLocation clang::GNUNullExpr::getLocStart | ( | ) | const [inline] |
Reimplemented from clang::Stmt.
SourceLocation clang::GNUNullExpr::getTokenLocation | ( | ) | const [inline] |
void clang::GNUNullExpr::setTokenLocation | ( | SourceLocation | L | ) | [inline] |