Home
last modified time | relevance | path

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

/freebsd-src/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-src/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-src/contrib/llvm-project/clang/lib/Lex/
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-src/contrib/llvm-project/llvm/lib/Target/AVR/AsmParser/
H A DAVRAsmParser.cpp458 AsmToken::TokenKind CurTok = Parser.getLexer().getKind(); in tryParseRelocExpression()
459 if (CurTok == AsmToken::Minus || CurTok == AsmToken::Plus) in tryParseRelocExpression()
470 if (CurTok != AsmToken::Identifier || in tryParseRelocExpression()
453 AsmToken::TokenKind CurTok = Parser.getLexer().getKind(); tryParseRelocExpression() local
/freebsd-src/contrib/llvm-project/llvm/lib/MC/MCParser/
H A DMCAsmLexer.cpp17 CurTok.emplace_back(AsmToken::Space, StringRef()); in MCAsmLexer()
/freebsd-src/contrib/llvm-project/clang/lib/Parse/
H A DParseStmt.cpp576 Token *CurTok = nullptr; in ParseExprStatement()
579 CurTok = &Tok;
585 if (CurTok && !R.isInvalid())
586 CurTok->setAnnotationValue(R.get());
561 Token *CurTok = nullptr; ParseExprStatement() local
H A DParseOpenMP.cpp4362 Token CurTok = P.getCurToken(); in ParseOpenMPIteratorsExpr()
4363 if (CurTok.isNot(tok::r_paren) && CurTok.isNot(tok::comma)) { in ParseOpenMPIteratorsExpr()
4364 P.Diag(CurTok, diag::err_expected_punc) << "step expression"; in ParseOpenMPIteratorsExpr()
4419 Token CurTok = P.getCurToken(); parseStepSize() local