class CharLiteralParser

Declaration

class CharLiteralParser { /* full declaration omitted */ };

Description

CharLiteralParser - Perform interpretation and semantic analysis of a character literal.

Declared at: clang/include/clang/Lex/LiteralSupport.h:188

Member Variables

private uint64_t Value
private tok::TokenKind Kind
private bool IsMultiChar
private bool HadError
private SmallString<32> UDSuffixBuf
private unsigned int UDSuffixOffset

Method Overview

Methods

CharLiteralParser(const char* begin,
                  const char* end,
                  clang::SourceLocation Loc,
                  clang::Preprocessor& PP,
                  tok::TokenKind kind)

Declared at: clang/include/clang/Lex/LiteralSupport.h:196

Parameters

const char* begin
const char* end
clang::SourceLocation Loc
clang::Preprocessor& PP
tok::TokenKind kind

llvm::StringRef getUDSuffix() const

Declared at: clang/include/clang/Lex/LiteralSupport.h:208

unsigned int getUDSuffixOffset() const

Declared at: clang/include/clang/Lex/LiteralSupport.h:209

uint64_t getValue() const

Declared at: clang/include/clang/Lex/LiteralSupport.h:207

bool hadError() const

Declared at: clang/include/clang/Lex/LiteralSupport.h:200

bool isMultiChar() const

Declared at: clang/include/clang/Lex/LiteralSupport.h:206

bool isOrdinary() const

Declared at: clang/include/clang/Lex/LiteralSupport.h:201

bool isUTF16() const

Declared at: clang/include/clang/Lex/LiteralSupport.h:204

bool isUTF32() const

Declared at: clang/include/clang/Lex/LiteralSupport.h:205

bool isUTF8() const

Declared at: clang/include/clang/Lex/LiteralSupport.h:203

bool isWide() const

Declared at: clang/include/clang/Lex/LiteralSupport.h:202