Lines Matching defs:CurTok
3647 Preprocessor::LexEmbedParameters(Token &CurTok, bool ForHasEmbed) {
3655 Diag(CurTok, diag::err_expected) << Expected;
3657 if (CurTok.isNot(tok::eod))
3658 DiscardUntilEndOfDirective(CurTok);
3662 if (CurTok.isNot(Kind)) {
3663 Diag(CurTok, diag::err_expected) << Kind;
3664 if (CurTok.isNot(tok::eod))
3665 DiscardUntilEndOfDirective(CurTok);
3687 const IdentifierInfo *Prefix = CurTok.getIdentifierInfo();
3691 LexNonComment(CurTok);
3692 if (CurTok.is(tok::coloncolon)) {
3694 LexNonComment(CurTok);
3698 const IdentifierInfo *Suffix = CurTok.getIdentifierInfo();
3701 LexNonComment(CurTok);
3728 ParameterIfNDef, CurTok, EvaluatedDefined, /*CheckForEOD=*/false);
3733 assert(CurTok.is(tok::eod) && "expect to be at the end of directive");
3741 LexNonComment(CurTok);
3746 Diag(CurTok, diag::err_defined_in_pp_embed);
3753 Diag(CurTok, diag::err_requires_positive_value)
3782 LexNonComment(CurTok); // Eat the (
3785 while (CurTok.isNot(tok::eod) &&
3786 (WaitingForInnerCloseParen || CurTok.isNot(tok::r_paren))) {
3787 switch (CurTok.getKind()) {
3795 BracketStack.push_back({CurTok.getKind(), CurTok.getLocation()});
3804 if (BracketStack.empty() || CurTok.getKind() != Matching) {
3811 Tokens.push_back(CurTok);
3812 LexNonComment(CurTok);
3819 LexNonComment(CurTok); // Eat the )
3823 LexNonComment(CurTok); // Prime the pump.
3824 while (!CurTok.isOneOf(EndTokenKind, tok::eod)) {
3825 SourceLocation ParamStartLoc = CurTok.getLocation();
3837 Diag(CurTok, diag::err_pp_embed_dup_params) << Parameter;
3843 PPEmbedParameterLimit{*Limit, {ParamStartLoc, CurTok.getLocation()}};
3846 Diag(CurTok, diag::err_pp_embed_dup_params) << Parameter;
3852 *Offset, {ParamStartLoc, CurTok.getLocation()}};
3855 Diag(CurTok, diag::err_pp_embed_dup_params) << Parameter;
3861 std::move(Soup), {ParamStartLoc, CurTok.getLocation()}};
3864 Diag(CurTok, diag::err_pp_embed_dup_params) << Parameter;
3870 std::move(Soup), {ParamStartLoc, CurTok.getLocation()}};
3873 Diag(CurTok, diag::err_pp_embed_dup_params) << Parameter;
3879 std::move(Soup), {ParamStartLoc, CurTok.getLocation()}};
3885 if (CurTok.is(tok::l_paren)) {
3891 Diag(CurTok, diag::err_pp_unknown_parameter) << 1 << Parameter;
3976 Token CurTok;
3978 LexEmbedParameters(CurTok, /*ForHasEmbed=*/false);
3980 assert((Params || CurTok.is(tok::eod)) &&