class GNUNullExpr

Declaration

class GNUNullExpr : public Expr { /* full declaration omitted */ };

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).

Declared at: clang/include/clang/AST/Expr.h:4599

Inherits from: Expr

Member Variables

private clang::SourceLocation TokenLoc
TokenLoc - The location of the __null keyword.

Inherited from Stmt:

protected

Method Overview

Inherited from Expr:

Inherited from ValueStmt:

Inherited from Stmt:

Methods

GNUNullExpr(clang::QualType Ty,
            clang::SourceLocation Loc)

Declared at: clang/include/clang/AST/Expr.h:4604

Parameters

clang::QualType Ty
clang::SourceLocation Loc

GNUNullExpr(clang::Stmt::EmptyShell Empty)

Description

Build an empty GNU __null expression.

Declared at: clang/include/clang/AST/Expr.h:4610

Parameters

clang::Stmt::EmptyShell Empty

clang::Stmt::child_range children()

Declared at: clang/include/clang/AST/Expr.h:4624

clang::Stmt::const_child_range children() const

Declared at: clang/include/clang/AST/Expr.h:4627

static bool classof(const clang::Stmt* T)

Declared at: clang/include/clang/AST/Expr.h:4619

Parameters

const clang::Stmt* T

clang::SourceLocation getBeginLoc() const

Declared at: clang/include/clang/AST/Expr.h:4616

clang::SourceLocation getEndLoc() const

Declared at: clang/include/clang/AST/Expr.h:4617

clang::SourceLocation getTokenLocation() const

Description

getTokenLocation - The location of the __null token.

Declared at: clang/include/clang/AST/Expr.h:4613

void setTokenLocation(clang::SourceLocation L)

Declared at: clang/include/clang/AST/Expr.h:4614

Parameters

clang::SourceLocation L