CharLiteralParser - Perform interpretation and semantic analysis of a character literal.
More...
#include "clang/Lex/LiteralSupport.h"
CharLiteralParser - Perform interpretation and semantic analysis of a character literal.
Definition at line 196 of file LiteralSupport.h.
◆ CharLiteralParser()
/// user-defined-character-literal: [C++11 lex.ext]
/// character-literal ud-suffix
/// ud-suffix:
/// identifier
/// character-literal: [C++11 lex.ccon]
/// ' c-char-sequence '
/// u' c-char-sequence '
/// U' c-char-sequence '
/// L' c-char-sequence '
/// u8' c-char-sequence ' [C++1z lex.ccon]
/// c-char-sequence:
/// c-char
/// c-char-sequence c-char
/// c-char:
/// any member of the source character set except the single-quote ',
/// backslash \, or new-line character
/// escape-sequence
/// universal-character-name
/// escape-sequence:
/// simple-escape-sequence
/// octal-escape-sequence
/// hexadecimal-escape-sequence
/// simple-escape-sequence:
/// one of \' \" \? \\ \a \b \f \n \r \t \v
/// octal-escape-sequence:
/// \ octal-digit
/// \ octal-digit octal-digit
/// \ octal-digit octal-digit octal-digit
/// hexadecimal-escape-sequence:
/// \x hexadecimal-digit
/// hexadecimal-escape-sequence hexadecimal-digit
/// universal-character-name: [C++11 lex.charset]
/// \u hex-quad
/// \U hex-quad hex-quad
/// hex-quad:
/// hex-digit hex-digit hex-digit hex-digit
///
Definition at line 1709 of file LiteralSupport.cpp.
References clang::Preprocessor::Diag(), clang::Evaluated, clang::expandUCNs(), clang::TargetInfo::getCharWidth(), getCharWidth(), clang::Preprocessor::getDiagnostics(), clang::TargetInfo::getIntWidth(), clang::Preprocessor::getLangOpts(), clang::Preprocessor::getSourceManager(), clang::Preprocessor::getTargetInfo(), clang::TargetInfo::getWCharWidth(), isMultiChar(), isOrdinary(), isWide(), Kind, Loc, ProcessCharEscape(), and ProcessUCNEscape().
◆ getUDSuffix()
StringRef clang::CharLiteralParser::getUDSuffix |
( |
| ) |
const |
|
inline |
◆ getUDSuffixOffset()
unsigned clang::CharLiteralParser::getUDSuffixOffset |
( |
| ) |
const |
|
inline |
◆ getValue()
uint64_t clang::CharLiteralParser::getValue |
( |
| ) |
const |
|
inline |
◆ hadError()
bool clang::CharLiteralParser::hadError |
( |
| ) |
const |
|
inline |
◆ isMultiChar()
bool clang::CharLiteralParser::isMultiChar |
( |
| ) |
const |
|
inline |
◆ isOrdinary()
bool clang::CharLiteralParser::isOrdinary |
( |
| ) |
const |
|
inline |
◆ isUTF16()
bool clang::CharLiteralParser::isUTF16 |
( |
| ) |
const |
|
inline |
◆ isUTF32()
bool clang::CharLiteralParser::isUTF32 |
( |
| ) |
const |
|
inline |
◆ isUTF8()
bool clang::CharLiteralParser::isUTF8 |
( |
| ) |
const |
|
inline |
◆ isWide()
bool clang::CharLiteralParser::isWide |
( |
| ) |
const |
|
inline |
The documentation for this class was generated from the following files: