Home
last modified time | relevance | path

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

/freebsd/contrib/llvm-project/llvm/lib/MC/MCParser/
H A DAsmLexer.cpp130 TokStart = nullptr; in setBuffer()
177 StringRef(TokStart, CurPtr - TokStart)); in LexFloatLiteral()
203 return ReturnError(TokStart, "invalid hexadecimal floating-point constant: " in LexHexFloatLiteral()
208 return ReturnError(TokStart, "invalid hexadecimal floating-point constant: " in LexHexFloatLiteral()
221 return ReturnError(TokStart, "invalid hexadecimal floating-point constant: " in LexHexFloatLiteral()
224 return AsmToken(AsmToken::Real, StringRef(TokStart, CurPtr - TokStart)); in LexHexFloatLiteral()
250 if (CurPtr == TokStart+1 && TokStart[0] == '.') in LexIdentifier()
251 return AsmToken(AsmToken::Dot, StringRef(TokStart, 1)); in LexIdentifier()
253 return AsmToken(AsmToken::Identifier, StringRef(TokStart, CurPtr - TokStart)); in LexIdentifier()
262 return AsmToken(AsmToken::Slash, StringRef(TokStart, 1)); in LexSlash()
[all …]
/freebsd/contrib/llvm-project/llvm/lib/TableGen/
H A DTGLexer.cpp79 TokStart = nullptr; in TGLexer()
97 return SMLoc::getFromPointer(TokStart); in getLoc()
131 TokStart = CurPtr; in processEOF()
177 TokStart = CurPtr; in LexToken()
188 return ReturnError(TokStart, "unexpected character"); in LexToken()
231 return ReturnError(TokStart, "invalid '..' punctuation"); in LexToken()
254 return ReturnError(TokStart, "unexpected character"); in LexToken()
358 return ReturnError(TokStart, "invalid variable name"); in LexVarName()
372 const char *IdentStart = TokStart; in LexIdentifier()
474 PrintError(TokStart, "unterminated comment"); in SkipCComment()
[all …]
H A DTGLexer.h198 const char *TokStart = nullptr; variable
239 return {CurIntVal, (CurPtr - TokStart) - 2}; in getCurBinaryIntVal()
/freebsd/contrib/llvm-project/llvm/lib/AsmParser/
H A DLLLexer.cpp195 TokStart = CurPtr; in LexToken()
220 StrVal.assign(TokStart, CurPtr-1); in LexToken()
301 if (const char *Ptr = isLabelTail(TokStart)) { in LexDollar()
303 StrVal.assign(TokStart, CurPtr - 1); in LexDollar()
319 StrVal.assign(TokStart + 2, CurPtr - 1); in LexDollar()
382 uint64_t Val = atoull(TokStart + 1, CurPtr); in LexUIntID()
402 StrVal.assign(TokStart+2, CurPtr-1); in LexVar()
464 StrVal.assign(TokStart+1, CurPtr); // Skip ! in LexExclaim()
1036 if ((TokStart[0] == 'u' || TokStart[0] == 's') && in LexIdentifier()
1037 TokStart[1] == '0' && TokStart[2] == 'x' && in LexIdentifier()
[all …]
/freebsd/contrib/llvm-project/clang/include/clang/Lex/
H A DLexer.h391 static unsigned getTokenPrefixLength(SourceLocation TokStart,
399 static SourceLocation AdvanceToTokenCharacter(SourceLocation TokStart, in AdvanceToTokenCharacter() argument
403 return TokStart.getLocWithOffset( in AdvanceToTokenCharacter()
404 getTokenPrefixLength(TokStart, Characters, SM, LangOpts)); in AdvanceToTokenCharacter()
H A DPreprocessor.h2251 SourceLocation AdvanceToTokenCharacter(SourceLocation TokStart, in AdvanceToTokenCharacter() argument
2253 return Lexer::AdvanceToTokenCharacter(TokStart, Char, SourceMgr, LangOpts); in AdvanceToTokenCharacter()
/freebsd/contrib/llvm-project/llvm/include/llvm/AsmParser/
H A DLLLexer.h49 const char *TokStart; variable
70 LocTy getLoc() const { return SMLoc::getFromPointer(TokStart); } in getLoc()
/freebsd/contrib/llvm-project/llvm/include/llvm/MC/MCParser/
H A DAsmLexer.h61 const char *TokStart = nullptr; variable
115 SMLoc getLoc() const { return SMLoc::getFromPointer(TokStart); } in getLoc()
/freebsd/contrib/llvm-project/clang/lib/Lex/
H A DLexer.cpp424 const char *TokStart = SourceMgr.getCharacterData(Tok.getLocation(), in getSpelling() local
433 return std::string(TokStart, TokStart + Tok.getLength()); in getSpelling()
437 Result.resize(getSpellingSlow(Tok, TokStart, LangOpts, &*Result.begin())); in getSpelling()
456 const char *TokStart = nullptr; in getSpelling() local
459 TokStart = Tok.getRawIdentifier().data(); in getSpelling()
470 TokStart = Tok.getLiteralData(); in getSpelling()
472 if (!TokStart) { in getSpelling()
475 TokStart = SourceMgr.getCharacterData(Tok.getLocation(), &CharDataInvalid); in getSpelling()
486 Buffer = TokStart; in getSpelling()
491 return getSpellingSlow(Tok, TokStart, LangOpts, const_cast<char*>(Buffer)); in getSpelling()
[all …]