class CharacterLiteral

Declaration

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

Description

This represents one expression. Note that Expr's are subclasses of Stmt. This allows an expression to be transparently used any place a Stmt is required.

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

Inherits from: Expr

Member Variables

private unsigned int Value
private clang::SourceLocation Loc

Inherited from Stmt:

protected

Method Overview

  • public CharacterLiteral(unsigned int value, clang::CharacterLiteral::CharacterKind kind, clang::QualType type, clang::SourceLocation l)
  • public CharacterLiteral(clang::Stmt::EmptyShell Empty)
  • public clang::Stmt::child_range children()
  • public clang::Stmt::const_child_range children() const
  • public static bool classof(const clang::Stmt * T)
  • public clang::SourceLocation getBeginLoc() const
  • public clang::SourceLocation getEndLoc() const
  • public clang::CharacterLiteral::CharacterKind getKind() const
  • public clang::SourceLocation getLocation() const
  • public unsigned int getValue() const
  • public static void print(unsigned int val, clang::CharacterLiteral::CharacterKind Kind, llvm::raw_ostream & OS)
  • public void setKind(clang::CharacterLiteral::CharacterKind kind)
  • public void setLocation(clang::SourceLocation Location)
  • public void setValue(unsigned int Val)

Inherited from Expr:

Inherited from ValueStmt:

Inherited from Stmt:

Methods

CharacterLiteral(
    unsigned int value,
    clang::CharacterLiteral::CharacterKind kind,
    clang::QualType type,
    clang::SourceLocation l)

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

Parameters

unsigned int value
clang::CharacterLiteral::CharacterKind kind
clang::QualType type
clang::SourceLocation l

CharacterLiteral(clang::Stmt::EmptyShell Empty)

Description

Construct an empty character literal.

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

Parameters

clang::Stmt::EmptyShell Empty

clang::Stmt::child_range children()

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

clang::Stmt::const_child_range children() const

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

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

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

Parameters

const clang::Stmt* T

clang::SourceLocation getBeginLoc() const

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

clang::SourceLocation getEndLoc() const

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

clang::CharacterLiteral::CharacterKind getKind()
    const

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

clang::SourceLocation getLocation() const

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

unsigned int getValue() const

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

static void print(
    unsigned int val,
    clang::CharacterLiteral::CharacterKind Kind,
    llvm::raw_ostream& OS)

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

Parameters

unsigned int val
clang::CharacterLiteral::CharacterKind Kind
llvm::raw_ostream& OS

void setKind(
    clang::CharacterLiteral::CharacterKind kind)

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

Parameters

clang::CharacterLiteral::CharacterKind kind

void setLocation(clang::SourceLocation Location)

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

Parameters

clang::SourceLocation Location

void setValue(unsigned int Val)

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

Parameters

unsigned int Val