Home
last modified time | relevance | path

Searched refs:CurTok (Results 1 – 8 of 8) sorted by relevance

/freebsd/contrib/llvm-project/llvm/include/llvm/MC/MCParser/
H A DMCAsmLexer.h39 SmallVector<AsmToken, 1> CurTok; variable
80 assert(!CurTok.empty()); in Lex()
82 IsAtStartOfStatement = CurTok.front().getKind() == AsmToken::EndOfStatement; in Lex()
83 CurTok.erase(CurTok.begin()); in Lex()
86 if (CurTok.empty()) { in Lex()
88 CurTok.insert(CurTok.begin(), T); in Lex()
90 return CurTok.front(); in Lex()
95 CurTok.insert(CurTok.begin(), Token); in UnLex()
107 return CurTok[0]; in getTok()
/freebsd/contrib/llvm-project/clang/lib/Frontend/Rewrite/
H A DRewriteMacros.cpp48 unsigned &CurTok, bool ReturnComment) { in GetNextRawTok() argument
49 assert(CurTok < RawTokens.size() && "Overran eof!"); in GetNextRawTok()
52 if (!ReturnComment && RawTokens[CurTok].is(tok::comment)) in GetNextRawTok()
53 ++CurTok; in GetNextRawTok()
55 return RawTokens[CurTok++]; in GetNextRawTok()
/freebsd/contrib/llvm-project/clang/lib/Lex/
H A DPPDirectives.cpp3625 Preprocessor::LexEmbedParameters(Token &CurTok, bool ForHasEmbed) { in LexEmbedParameters() argument
3633 Diag(CurTok, diag::err_expected) << Expected; in LexEmbedParameters()
3635 if (CurTok.isNot(tok::eod)) in LexEmbedParameters()
3636 DiscardUntilEndOfDirective(CurTok); in LexEmbedParameters()
3640 if (CurTok.isNot(Kind)) { in LexEmbedParameters()
3641 Diag(CurTok, diag::err_expected) << Kind; in LexEmbedParameters()
3642 if (CurTok.isNot(tok::eod)) in LexEmbedParameters()
3643 DiscardUntilEndOfDirective(CurTok); in LexEmbedParameters()
3665 const IdentifierInfo *Prefix = CurTok.getIdentifierInfo(); in LexEmbedParameters()
3669 LexNonComment(CurTok); in LexEmbedParameters()
[all …]
H A DTokenLexer.cpp257 const Token &CurTok = Tokens[I]; in ExpandFunctionArguments() local
264 if (I != 0 && !Tokens[I-1].is(tok::hashhash) && CurTok.hasLeadingSpace()) in ExpandFunctionArguments()
267 if (VCtx.isVAOptToken(CurTok)) { in ExpandFunctionArguments()
273 VCtx.sawVAOptFollowedByOpeningParens(CurTok.getLocation(), in ExpandFunctionArguments()
371 if (CurTok.isOneOf(tok::hash, tok::hashat)) { in ExpandFunctionArguments()
379 CurTok.is(tok::hashat)); in ExpandFunctionArguments()
384 getExpansionLocForMacroDefLoc(CurTok.getLocation()); in ExpandFunctionArguments()
388 bool Charify = CurTok.is(tok::hashat); in ExpandFunctionArguments()
418 IdentifierInfo *II = CurTok.getIdentifierInfo(); in ExpandFunctionArguments()
422 ResultToks.push_back(CurTok); in ExpandFunctionArguments()
[all …]
/freebsd/contrib/llvm-project/llvm/lib/Target/AVR/AsmParser/
H A DAVRAsmParser.cpp458 AsmToken::TokenKind CurTok = Parser.getLexer().getKind(); in tryParseRelocExpression() local
459 if (CurTok == AsmToken::Minus || CurTok == AsmToken::Plus) in tryParseRelocExpression()
470 if (CurTok != AsmToken::Identifier || in tryParseRelocExpression()
/freebsd/contrib/llvm-project/llvm/lib/MC/MCParser/
H A DMCAsmLexer.cpp17 CurTok.emplace_back(AsmToken::Space, StringRef()); in MCAsmLexer()
/freebsd/contrib/llvm-project/clang/lib/Parse/
H A DParseStmt.cpp576 Token *CurTok = nullptr; in ParseExprStatement() local
579 CurTok = &Tok; in ParseExprStatement()
585 if (CurTok && !R.isInvalid()) in ParseExprStatement()
586 CurTok->setAnnotationValue(R.get()); in ParseExprStatement()
H A DParseOpenMP.cpp4362 Token CurTok = P.getCurToken(); in parseStepSize() local
4363 if (CurTok.isNot(tok::r_paren) && CurTok.isNot(tok::comma)) { in parseStepSize()
4364 P.Diag(CurTok, diag::err_expected_punc) << "step expression"; in parseStepSize()