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 DAsmLexer.h45 SmallVector<AsmToken, 1> CurTok; variable
93 assert(!CurTok.empty()); in Lex()
95 JustConsumedEOL = CurTok.front().getKind() == AsmToken::EndOfStatement; in Lex()
96 CurTok.erase(CurTok.begin()); in Lex()
99 if (CurTok.empty()) { in Lex()
101 CurTok.insert(CurTok.begin(), T); in Lex()
103 return CurTok.front(); in Lex()
107 CurTok.insert(CurTok.begin(), Token); in UnLex()
118 const AsmToken &getTok() const { return CurTok[0]; } in getTok()
/freebsd/contrib/llvm-project/clang/lib/Frontend/Rewrite/
H A DRewriteMacros.cpp47 unsigned &CurTok, bool ReturnComment) { in GetNextRawTok() argument
48 assert(CurTok < RawTokens.size() && "Overran eof!"); in GetNextRawTok()
51 if (!ReturnComment && RawTokens[CurTok].is(tok::comment)) in GetNextRawTok()
52 ++CurTok; in GetNextRawTok()
54 return RawTokens[CurTok++]; in GetNextRawTok()
/freebsd/contrib/llvm-project/clang/lib/Lex/
H A DPPDirectives.cpp3642 Preprocessor::LexEmbedParameters(Token &CurTok, bool ForHasEmbed) { in LexEmbedParameters() argument
3649 Diag(CurTok, diag::err_expected) << Expected; in LexEmbedParameters()
3651 if (CurTok.isNot(tok::eod)) in LexEmbedParameters()
3652 DiscardUntilEndOfDirective(CurTok); in LexEmbedParameters()
3656 if (CurTok.isNot(Kind)) { in LexEmbedParameters()
3657 Diag(CurTok, diag::err_expected) << Kind; in LexEmbedParameters()
3658 if (CurTok.isNot(tok::eod)) in LexEmbedParameters()
3659 DiscardUntilEndOfDirective(CurTok); in LexEmbedParameters()
3681 const IdentifierInfo *Prefix = CurTok.getIdentifierInfo(); in LexEmbedParameters()
3685 LexNonComment(CurTok); in LexEmbedParameters()
[all …]
H A DTokenLexer.cpp256 const Token &CurTok = Tokens[I]; in ExpandFunctionArguments() local
263 if (I != 0 && !Tokens[I-1].is(tok::hashhash) && CurTok.hasLeadingSpace()) in ExpandFunctionArguments()
266 if (VCtx.isVAOptToken(CurTok)) { in ExpandFunctionArguments()
272 VCtx.sawVAOptFollowedByOpeningParens(CurTok.getLocation(), in ExpandFunctionArguments()
370 if (CurTok.isOneOf(tok::hash, tok::hashat)) { in ExpandFunctionArguments()
378 CurTok.is(tok::hashat)); in ExpandFunctionArguments()
383 getExpansionLocForMacroDefLoc(CurTok.getLocation()); in ExpandFunctionArguments()
387 bool Charify = CurTok.is(tok::hashat); in ExpandFunctionArguments()
417 IdentifierInfo *II = CurTok.getIdentifierInfo(); in ExpandFunctionArguments()
421 ResultToks.push_back(CurTok); in ExpandFunctionArguments()
[all …]
/freebsd/contrib/llvm-project/llvm/lib/Target/AVR/AsmParser/
H A DAVRAsmParser.cpp461 AsmToken::TokenKind CurTok = Parser.getLexer().getKind(); in tryParseRelocExpression() local
462 if (CurTok == AsmToken::Minus || CurTok == AsmToken::Plus) in tryParseRelocExpression()
473 if (CurTok != AsmToken::Identifier || in tryParseRelocExpression()
/freebsd/contrib/llvm-project/clang/lib/Parse/
H A DParseStmt.cpp543 Token *CurTok = nullptr; in ParseExprStatement() local
546 CurTok = &Tok; in ParseExprStatement()
552 if (CurTok && !R.isInvalid()) in ParseExprStatement()
553 CurTok->setAnnotationValue(R.get()); in ParseExprStatement()
H A DParseOpenMP.cpp4298 Token CurTok = P.getCurToken(); in parseStepSize() local
4299 if (CurTok.isNot(tok::r_paren) && CurTok.isNot(tok::comma)) { in parseStepSize()
4300 P.Diag(CurTok, diag::err_expected_punc) << "step expression"; in parseStepSize()
/freebsd/contrib/llvm-project/llvm/lib/MC/MCParser/
H A DAsmLexer.cpp118 CurTok.emplace_back(AsmToken::Space, StringRef()); in AsmLexer()