Lines Matching defs:context

393 /* Dump parser context C to FILE.  */
413 fprintf (file, "Parsing context stack:\n");
533 cp_debug_print_context_stack (file, parser->context);
548 "current context",
569 "context", parser->in_type_id_in_expr_p);
1866 /* Construct a new context. The context below this one on the stack
1872 cp_parser_context *context;
1878 context = cp_parser_context_free_list;
1879 cp_parser_context_free_list = context->next;
1880 memset (context, 0, sizeof (*context));
1883 context = ggc_cleared_alloc<cp_parser_context> ();
1885 /* No errors have occurred yet in this context. */
1886 context->status = CP_PARSER_STATUS_KIND_NO_ERROR;
1887 /* If this is not the bottommost context, copy information that we
1888 need from the previous context. */
1891 /* If, in the NEXT context, we are parsing an `x->' or `x.'
1892 expression, then we are parsing one in this context, too. */
1893 context->object_type = next->object_type;
1895 context->next = next;
1898 return context;
2551 return parser->context->next != NULL;
2722 parser->context->status = CP_PARSER_STATUS_KIND_ERROR;
3495 parser->context = cp_parser_context_new (NULL);
3745 cp_parser_error (parser, "a wide string is invalid in this context");
4111 /* This file might have been a context that's implicitly extern
4112 "C". If so, pop the lang context. (Only relevant for PCH.) */
4139 decltype context. */
4152 cp_parser_commit_to_tentative_parse won't affect the current context. */
4498 "%<this%> may not be used in this context");
4728 /* Check to see if DECL is a local variable in a context
4750 "local variable %qD may not appear in this context",
5150 /* Look in the surrounding context. */
6544 FOR_OFFSETOF is set if we're being called in that context, which
6565 offsetof is not being used in an integral constant expression context,
6567 If we are in an integral constant expression context, then we might
6633 FOR_OFFSETOF is set if we're being called in that context. That sorta
6689 parser->context->object_type = scope;
6800 parser->context->object_type = NULL_TREE;
9023 "lambda-expression in unevaluated context");
9806 the context of a compound, accept the pragma as a "statement" and
10523 /* Used by cp_parser_range_for in template context: we aren't going to
10754 /* Can happen, when, eg, in a template context, Koenig lookup
11244 extern "C", modify the lang context appropriately. */
12817 /* `typename' is not allowed in this context ([temp.res]). */
12821 "keyword %<typename%> not allowed in this context (a qualified "
13990 /* In a declaration, in a dependent context, we pretend that the
14810 optional in this context, issue an error message. */
15631 declaration context. */
17840 this context, we must resolve S<T>::R to an ordinary
18344 /* We recognize NSDMI context by the context-less 'this' pointer set up
18574 /* In the context of a trailing return type, enum E { } is an
18823 /* We don't know yet if the enclosing context is deprecated, so wait
19046 /* In an expression context, having seen:
20528 base classes should be looked up in that context. For example:
21460 "keyword %<typename%> not allowed in this context "
22781 tree object_type = parser->context->object_type;
22790 parser->context->object_type = NULL_TREE;
22955 /* Look it up in the enclosing context. */
23033 the current context, return the TYPE_DECL. If TAG_NAME_P is
25528 /* Enter a new parsing context. */
25529 parser->context = cp_parser_context_new (parser->context);
25543 cp_parser_context *context;
25548 for (context = parser->context; context->next; context = context->next)
25550 if (context->status == CP_PARSER_STATUS_KIND_COMMITTED)
25552 context->status = CP_PARSER_STATUS_KIND_COMMITTED;
25570 cp_parser_context *context = parser->context;
25573 if (context)
25575 if (context->status == CP_PARSER_STATUS_KIND_COMMITTED)
25577 context->status = CP_PARSER_STATUS_KIND_COMMITTED;
25591 gcc_assert (parser->context->status != CP_PARSER_STATUS_KIND_COMMITTED
25607 cp_parser_context *context;
25612 /* Remove the topmost context from the stack. */
25613 context = parser->context;
25614 parser->context = context->next;
25620 if (context->status != CP_PARSER_STATUS_KIND_COMMITTED)
25632 /* Add the context to the front of the free list. */
25633 context->next = cp_parser_context_free_list;
25634 cp_parser_context_free_list = context;
25646 && parser->context->status != CP_PARSER_STATUS_KIND_COMMITTED);
25656 && parser->context->status == CP_PARSER_STATUS_KIND_ERROR);
31424 enum pragma_context context)
31426 if (context == pragma_stmt)
31466 enum pragma_context context)
31468 if (context != pragma_stmt && context != pragma_compound)
31525 return cp_parser_omp_target_update (parser, pragma_tok, context);
31854 enum pragma_context context)
31877 cp_parser_pragma (parser, context);
31878 switch (context)
32466 enum pragma_context context)
32477 context);
32485 context);
32967 cp_parser_pragma (cp_parser *parser, enum pragma_context context)
32987 switch (context)
33002 switch (context)
33017 switch (context)
33033 switch (context)
33049 switch (context)
33065 switch (context)
33085 cp_parser_omp_declare (parser, pragma_tok, context);
33110 if (context != pragma_stmt && context != pragma_compound)
33116 return cp_parser_omp_target (parser, pragma_tok, context);
33130 if (context == pragma_external)
33151 if (context == pragma_external)
33161 if (context == pragma_external)