Home
last modified time | relevance | path

Searched refs:TokStart (Results 1 – 10 of 10) sorted by relevance

/external/llvm/lib/MC/MCParser/
DAsmLexer.cpp41 TokStart = 0; in setBuffer()
91 StringRef(TokStart, CurPtr - TokStart)); in LexFloatLiteral()
112 if (CurPtr == TokStart+1 && TokStart[0] == '.') in LexIdentifier()
113 return AsmToken(AsmToken::Dot, StringRef(TokStart, 1)); in LexIdentifier()
115 return AsmToken(AsmToken::Identifier, StringRef(TokStart, CurPtr - TokStart)); in LexIdentifier()
133 return ReturnError(TokStart, "unterminated comment"); in LexSlash()
209 StringRef Result(TokStart, CurPtr - TokStart); in LexDigit()
217 return ReturnError(TokStart, !isHex ? "invalid decimal number" : in LexDigit()
238 StringRef Result(TokStart, CurPtr - TokStart); in LexDigit()
247 return ReturnError(TokStart, "invalid binary number"); in LexDigit()
[all …]
DMCAsmLexer.cpp16 TokStart(0), SkipSpace(true) { in MCAsmLexer()
23 return SMLoc::getFromPointer(TokStart); in getLoc()
/external/llvm/lib/AsmParser/
DLLLexer.cpp188 TokStart = CurPtr; in LexToken()
213 StrVal.assign(TokStart, CurPtr-1); in LexToken()
224 StrVal.assign(TokStart, CurPtr-1); in LexToken()
276 StrVal.assign(TokStart+2, CurPtr-1); in LexAt()
292 uint64_t Val = atoull(TokStart+1, CurPtr); in LexAt()
358 uint64_t Val = atoull(TokStart+1, CurPtr); in LexPercent()
398 StrVal.assign(TokStart+1, CurPtr); // Skip ! in LexExclaim()
413 uint64_t Val = atoull(TokStart+1, CurPtr); in LexHash()
694 if ((TokStart[0] == 'u' || TokStart[0] == 's') && in LexIdentifier()
695 TokStart[1] == '0' && TokStart[2] == 'x' && in LexIdentifier()
[all …]
DLLLexer.h37 const char *TokStart; variable
55 LocTy getLoc() const { return SMLoc::getFromPointer(TokStart); } in getLoc()
/external/llvm/lib/TableGen/
DTGLexer.cpp33 TokStart = 0; in TGLexer()
37 return SMLoc::getFromPointer(TokStart); in getLoc()
89 TokStart = CurPtr; in LexToken()
100 return ReturnError(TokStart, "Unexpected character"); in LexToken()
133 return ReturnError(TokStart, "Unexpected character"); in LexToken()
237 return ReturnError(TokStart, "Invalid variable name"); in LexVarName()
252 const char *IdentStart = TokStart; in LexIdentifier()
355 PrintError(TokStart, "Unterminated comment!"); in SkipCComment()
389 return ReturnError(TokStart, "Invalid hexadecimal number"); in LexNumber()
394 return ReturnError(TokStart, "Invalid hexadecimal number"); in LexNumber()
[all …]
DTGLexer.h69 const char *TokStart; variable
/external/clang/lib/Lex/
DLexer.cpp345 const char *TokStart = SourceMgr.getCharacterData(Tok.getLocation(), in getSpelling() local
354 return std::string(TokStart, TokStart + Tok.getLength()); in getSpelling()
358 Result.resize(getSpellingSlow(Tok, TokStart, LangOpts, &*Result.begin())); in getSpelling()
377 const char *TokStart = 0; in getSpelling() local
380 TokStart = Tok.getRawIdentifierData(); in getSpelling()
391 TokStart = Tok.getLiteralData(); in getSpelling()
393 if (TokStart == 0) { in getSpelling()
396 TokStart = SourceMgr.getCharacterData(Tok.getLocation(), &CharDataInvalid); in getSpelling()
407 Buffer = TokStart; in getSpelling()
412 return getSpellingSlow(Tok, TokStart, LangOpts, const_cast<char*>(Buffer)); in getSpelling()
[all …]
/external/llvm/include/llvm/MC/MCParser/
DMCAsmLexer.h119 const char *TokStart;
/external/clang/include/clang/Lex/
DLexer.h303 static SourceLocation AdvanceToTokenCharacter(SourceLocation TokStart,
DPreprocessor.h1091 SourceLocation AdvanceToTokenCharacter(SourceLocation TokStart, in AdvanceToTokenCharacter() argument
1093 return Lexer::AdvanceToTokenCharacter(TokStart, Char, SourceMgr, LangOpts); in AdvanceToTokenCharacter()