Please use GitHub pull requests for new patches. Phabricator shutdown timeline
Changeset View
Changeset View
Standalone View
Standalone View
clang/lib/Lex/Lexer.cpp
Show First 20 Lines • Show All 3,280 Lines • ▼ Show 20 Lines | llvm::Optional<uint32_t> Lexer::tryReadNumericUCN(const char *&StartPtr, | ||||
} | } | ||||
const char *CurPtr = StartPtr + CharSize; | const char *CurPtr = StartPtr + CharSize; | ||||
const char *KindLoc = &CurPtr[-1]; | const char *KindLoc = &CurPtr[-1]; | ||||
uint32_t CodePoint = 0; | uint32_t CodePoint = 0; | ||||
while (Count != NumHexDigits || Delimited) { | while (Count != NumHexDigits || Delimited) { | ||||
char C = getCharAndSize(CurPtr, CharSize); | char C = getCharAndSize(CurPtr, CharSize); | ||||
if (!Delimited && C == '{') { | if (!Delimited && Count == 0 && C == '{') { | ||||
Delimited = true; | Delimited = true; | ||||
CurPtr += CharSize; | CurPtr += CharSize; | ||||
continue; | continue; | ||||
} | } | ||||
if (Delimited && C == '}') { | if (Delimited && C == '}') { | ||||
CurPtr += CharSize; | CurPtr += CharSize; | ||||
FoundEndDelimiter = true; | FoundEndDelimiter = true; | ||||
▲ Show 20 Lines • Show All 1,213 Lines • Show Last 20 Lines |