Commit ee3071ef by Nathan Sidwell Committed by Nathan Sidwell

parser.c (cp_parser_init_declarator, [...]): Reformat.

	* parser.c (cp_parser_init_declarator,
	cp_paser_member_declaration): Reformat.
	* pt.c (lookup_template_class, type_unification_real, unify,
	type_dependent_expression_p): Reformat.

From-SVN: r70047
parent bf42e45b
2003-08-01 Nathan Sidwell <nathan@codesourcery.com> 2003-08-01 Nathan Sidwell <nathan@codesourcery.com>
* parser.c (cp_parser_init_declarator,
cp_paser_member_declaration): Reformat.
* pt.c (lookup_template_class, type_unification_real, unify,
type_dependent_expression_p): Reformat.
PR c++/11295 PR c++/11295
* cp-tree.h (tubst_flags_t): Add tf_stmt_expr_cmpd, * cp-tree.h (tubst_flags_t): Add tf_stmt_expr_cmpd,
tf_stmt_expr_body. tf_stmt_expr_body.
......
...@@ -9268,8 +9268,7 @@ cp_parser_init_declarator (cp_parser* parser, ...@@ -9268,8 +9268,7 @@ cp_parser_init_declarator (cp_parser* parser,
friend_p = cp_parser_friend_p (decl_specifiers); friend_p = cp_parser_friend_p (decl_specifiers);
/* Check that the number of template-parameter-lists is OK. */ /* Check that the number of template-parameter-lists is OK. */
if (!cp_parser_check_declarator_template_parameters (parser, if (!cp_parser_check_declarator_template_parameters (parser, declarator))
declarator))
return error_mark_node; return error_mark_node;
/* Enter the newly declared entry in the symbol table. If we're /* Enter the newly declared entry in the symbol table. If we're
...@@ -9284,11 +9283,8 @@ cp_parser_init_declarator (cp_parser* parser, ...@@ -9284,11 +9283,8 @@ cp_parser_init_declarator (cp_parser* parser,
decl_specifiers); decl_specifiers);
have_extern_spec = false; have_extern_spec = false;
} }
decl = start_decl (declarator, decl = start_decl (declarator, decl_specifiers,
decl_specifiers, is_initialized, attributes, prefix_attributes);
is_initialized,
attributes,
prefix_attributes);
} }
/* Enter the SCOPE. That way unqualified names appearing in the /* Enter the SCOPE. That way unqualified names appearing in the
...@@ -11850,10 +11846,8 @@ cp_parser_member_declaration (cp_parser* parser) ...@@ -11850,10 +11846,8 @@ cp_parser_member_declaration (cp_parser* parser)
else else
{ {
/* Create the declaration. */ /* Create the declaration. */
decl = grokfield (declarator, decl = grokfield (declarator, decl_specifiers,
decl_specifiers, initializer, asm_specification,
initializer,
asm_specification,
attributes); attributes);
/* Any initialization must have been from a /* Any initialization must have been from a
constant-expression. */ constant-expression. */
......
...@@ -4126,9 +4126,9 @@ lookup_template_class (tree d1, ...@@ -4126,9 +4126,9 @@ lookup_template_class (tree d1,
i > 0 && t != NULL_TREE; i > 0 && t != NULL_TREE;
--i, t = TREE_CHAIN (t)) --i, t = TREE_CHAIN (t))
{ {
tree a = coerce_template_parms (TREE_VALUE (t), arglist, tree a = coerce_template_parms (TREE_VALUE (t),
template, complain, arglist, template,
/*require_all_args=*/1); complain, /*require_all_args=*/1);
/* Don't process further if one of the levels fails. */ /* Don't process further if one of the levels fails. */
if (a == error_mark_node) if (a == error_mark_node)
...@@ -8786,9 +8786,7 @@ type_unification_real (tree tparms, ...@@ -8786,9 +8786,7 @@ type_unification_real (tree tparms,
my_friendly_assert (TREE_CODE (tparms) == TREE_VEC, 289); my_friendly_assert (TREE_CODE (tparms) == TREE_VEC, 289);
my_friendly_assert (xparms == NULL_TREE my_friendly_assert (xparms == NULL_TREE
|| TREE_CODE (xparms) == TREE_LIST, 290); || TREE_CODE (xparms) == TREE_LIST, 290);
/* ARGS could be NULL. */ my_friendly_assert (!xargs || TREE_CODE (xargs) == TREE_LIST, 291);
if (xargs)
my_friendly_assert (TREE_CODE (xargs) == TREE_LIST, 291);
my_friendly_assert (ntparms > 0, 292); my_friendly_assert (ntparms > 0, 292);
switch (strict) switch (strict)
...@@ -9489,8 +9487,8 @@ unify (tree tparms, tree targs, tree parm, tree arg, int strict) ...@@ -9489,8 +9487,8 @@ unify (tree tparms, tree targs, tree parm, tree arg, int strict)
template <class T, class Allocator = allocator> template <class T, class Allocator = allocator>
class vector. */ class vector. */
if (coerce_template_parms (argtmplvec, parmvec, parmtmpl, if (coerce_template_parms (argtmplvec, parmvec, parmtmpl, 0, 1)
tf_none, 1) == error_mark_node) == error_mark_node)
return 1; return 1;
/* Deduce arguments T, i from TT<T> or TT<i>. /* Deduce arguments T, i from TT<T> or TT<i>.
...@@ -11638,8 +11636,8 @@ type_dependent_expression_p (tree expression) ...@@ -11638,8 +11636,8 @@ type_dependent_expression_p (tree expression)
expression = BASELINK_FUNCTIONS (expression); expression = BASELINK_FUNCTIONS (expression);
if (TREE_CODE (expression) == TEMPLATE_ID_EXPR) if (TREE_CODE (expression) == TEMPLATE_ID_EXPR)
{ {
if (any_dependent_template_arguments_p (TREE_OPERAND (expression, if (any_dependent_template_arguments_p
1))) (TREE_OPERAND (expression, 1)))
return true; return true;
expression = TREE_OPERAND (expression, 0); expression = TREE_OPERAND (expression, 0);
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment