Commit 324f9dfb by Kazu Hirata Committed by Kazu Hirata

call.c, [...]: Fix comment formatting.

	* call.c, class.c, cp-tree.def, decl2.c, name-lookup.c, pt.c,
	typeck.c: Fix comment formatting.

From-SVN: r82476
parent 1999435c
2004-05-31 Kazu Hirata <kazu@cs.umass.edu>
* call.c, class.c, cp-tree.def, decl2.c, name-lookup.c, pt.c,
typeck.c: Fix comment formatting.
2004-05-30 Andrew Pinski <pinskia@physics.uc.edu> 2004-05-30 Andrew Pinski <pinskia@physics.uc.edu>
* cp-lang.c (cp_expand_decl): Remove. * cp-lang.c (cp_expand_decl): Remove.
......
...@@ -3174,7 +3174,7 @@ build_conditional_expr (tree arg1, tree arg2, tree arg3) ...@@ -3174,7 +3174,7 @@ build_conditional_expr (tree arg1, tree arg2, tree arg3)
We must avoid calling force_rvalue for expressions of type We must avoid calling force_rvalue for expressions of type
"void" because it will complain that their value is being "void" because it will complain that their value is being
used. */ used. */
if (TREE_CODE (arg2) == THROW_EXPR if (TREE_CODE (arg2) == THROW_EXPR
&& TREE_CODE (arg3) != THROW_EXPR) && TREE_CODE (arg3) != THROW_EXPR)
{ {
...@@ -6470,7 +6470,7 @@ initialize_reference (tree type, tree expr, tree decl, tree *cleanup) ...@@ -6470,7 +6470,7 @@ initialize_reference (tree type, tree expr, tree decl, tree *cleanup)
TARGET_EXPR here. It is important that EXPR be a TARGET_EXPR here. It is important that EXPR be a
TARGET_EXPR below since otherwise the INIT_EXPR will TARGET_EXPR below since otherwise the INIT_EXPR will
attempt to make a bitwise copy of EXPR to initialize attempt to make a bitwise copy of EXPR to initialize
VAR. */ VAR. */
if (TREE_CODE (expr) != TARGET_EXPR) if (TREE_CODE (expr) != TARGET_EXPR)
expr = get_target_expr (expr); expr = get_target_expr (expr);
/* Create the INIT_EXPR that will initialize the temporary /* Create the INIT_EXPR that will initialize the temporary
......
...@@ -3012,7 +3012,7 @@ check_field_decls (tree t, tree *access_decls, ...@@ -3012,7 +3012,7 @@ check_field_decls (tree t, tree *access_decls,
/* [class.union] /* [class.union]
If a union contains a static data member, or a member of If a union contains a static data member, or a member of
reference type, the program is ill-formed. */ reference type, the program is ill-formed. */
if (TREE_CODE (x) == VAR_DECL) if (TREE_CODE (x) == VAR_DECL)
{ {
cp_error_at ("`%D' may not be static because it is a member of a union", x); cp_error_at ("`%D' may not be static because it is a member of a union", x);
......
...@@ -103,7 +103,7 @@ DEFTREECODE (ALIAS_DECL, "alias_decl", 'd', 0) ...@@ -103,7 +103,7 @@ DEFTREECODE (ALIAS_DECL, "alias_decl", 'd', 0)
A BASELINK is an expression; the TREE_TYPE of the BASELINK gives A BASELINK is an expression; the TREE_TYPE of the BASELINK gives
the type of the expression. This type is either a FUNCTION_TYPE, the type of the expression. This type is either a FUNCTION_TYPE,
METHOD_TYPE, or `unknown_type_node' indicating that the function is METHOD_TYPE, or `unknown_type_node' indicating that the function is
overloaded. */ overloaded. */
DEFTREECODE (BASELINK, "baselink", 'x', 0) DEFTREECODE (BASELINK, "baselink", 'x', 0)
/* Template definition. The following fields have the specified uses, /* Template definition. The following fields have the specified uses,
...@@ -197,10 +197,10 @@ DEFTREECODE (TYPEOF_TYPE, "typeof_type", 't', 0) ...@@ -197,10 +197,10 @@ DEFTREECODE (TYPEOF_TYPE, "typeof_type", 't', 0)
/* A using declaration. DECL_INITIAL contains the specified scope. /* A using declaration. DECL_INITIAL contains the specified scope.
This is not an alias, but is later expanded into multiple aliases. This is not an alias, but is later expanded into multiple aliases.
The decl will have a NULL_TYPE iff the scope is a dependent scope, The decl will have a NULL_TYPE iff the scope is a dependent scope,
otherwise it will have a void type. */ otherwise it will have a void type. */
DEFTREECODE (USING_DECL, "using_decl", 'd', 0) DEFTREECODE (USING_DECL, "using_decl", 'd', 0)
/* A using directive. The operand is USING_STMT_NAMESPACE. */ /* A using directive. The operand is USING_STMT_NAMESPACE. */
DEFTREECODE (USING_STMT, "using_directive", 'e', 1) DEFTREECODE (USING_STMT, "using_directive", 'e', 1)
/* An un-parsed default argument. Looks like an IDENTIFIER_NODE. */ /* An un-parsed default argument. Looks like an IDENTIFIER_NODE. */
...@@ -237,7 +237,7 @@ DEFTREECODE (PSEUDO_DTOR_EXPR, "pseudo_dtor_expr", 'e', 3) ...@@ -237,7 +237,7 @@ DEFTREECODE (PSEUDO_DTOR_EXPR, "pseudo_dtor_expr", 'e', 3)
that expression if it appeared in a template argument list. In that expression if it appeared in a template argument list. In
that situation, we create a NON_DEPENDENT_EXPR to take the place of that situation, we create a NON_DEPENDENT_EXPR to take the place of
the original expression. The expression is the only operand -- it the original expression. The expression is the only operand -- it
is only needed for diagnostics. */ is only needed for diagnostics. */
DEFTREECODE (NON_DEPENDENT_EXPR, "non_dependent_expr", 'e', 1) DEFTREECODE (NON_DEPENDENT_EXPR, "non_dependent_expr", 'e', 1)
/* CTOR_INITIALIZER is a placeholder in template code for a call to /* CTOR_INITIALIZER is a placeholder in template code for a call to
......
...@@ -1422,7 +1422,7 @@ comdat_linkage (tree decl) ...@@ -1422,7 +1422,7 @@ comdat_linkage (tree decl)
linkonce sections, so that they will be merged with implicit linkonce sections, so that they will be merged with implicit
instantiations; otherwise we get duplicate symbol errors. instantiations; otherwise we get duplicate symbol errors.
For Darwin we do not want explicit instantiations to be For Darwin we do not want explicit instantiations to be
linkonce. */ linkonce. */
void void
maybe_make_one_only (tree decl) maybe_make_one_only (tree decl)
......
...@@ -552,7 +552,7 @@ add_decl_to_level (tree decl, cxx_scope *b) ...@@ -552,7 +552,7 @@ add_decl_to_level (tree decl, cxx_scope *b)
/* If appropriate, add decl to separate list of statics. We /* If appropriate, add decl to separate list of statics. We
include extern variables because they might turn out to be include extern variables because they might turn out to be
static later. It's OK for this list to contain a few false static later. It's OK for this list to contain a few false
positives. */ positives. */
if (b->kind == sk_namespace) if (b->kind == sk_namespace)
if ((TREE_CODE (decl) == VAR_DECL if ((TREE_CODE (decl) == VAR_DECL
&& (TREE_STATIC (decl) || DECL_EXTERNAL (decl))) && (TREE_STATIC (decl) || DECL_EXTERNAL (decl)))
......
...@@ -9543,7 +9543,7 @@ template_decl_level (tree decl) ...@@ -9543,7 +9543,7 @@ template_decl_level (tree decl)
/* Decide whether ARG can be unified with PARM, considering only the /* Decide whether ARG can be unified with PARM, considering only the
cv-qualifiers of each type, given STRICT as documented for unify. cv-qualifiers of each type, given STRICT as documented for unify.
Returns nonzero iff the unification is OK on that basis. */ Returns nonzero iff the unification is OK on that basis. */
static int static int
check_cv_quals_for_unify (int strict, tree arg, tree parm) check_cv_quals_for_unify (int strict, tree arg, tree parm)
...@@ -10792,7 +10792,7 @@ do_type_instantiation (tree t, tree storage, tsubst_flags_t complain) ...@@ -10792,7 +10792,7 @@ do_type_instantiation (tree t, tree storage, tsubst_flags_t complain)
a static archive's TOC. The problematic case is if we're doing a static archive's TOC. The problematic case is if we're doing
a non-extern explicit instantiation of an extern template: we a non-extern explicit instantiation of an extern template: we
have to put member functions in the TOC in that case, or we'll have to put member functions in the TOC in that case, or we'll
get unresolved symbols at link time. */ get unresolved symbols at link time. */
explicitly_instantiate_members = explicitly_instantiate_members =
TARGET_EXPLICIT_INSTANTIATIONS_ONE_ONLY TARGET_EXPLICIT_INSTANTIATIONS_ONE_ONLY
......
...@@ -1026,7 +1026,7 @@ comptypes (tree t1, tree t2, int strict) ...@@ -1026,7 +1026,7 @@ comptypes (tree t1, tree t2, int strict)
if (!comptypes (TYPE_OFFSET_BASETYPE (t1), TYPE_OFFSET_BASETYPE (t2), if (!comptypes (TYPE_OFFSET_BASETYPE (t1), TYPE_OFFSET_BASETYPE (t2),
strict & ~COMPARE_REDECLARATION)) strict & ~COMPARE_REDECLARATION))
return false; return false;
/* Fall through. */ /* Fall through. */
case POINTER_TYPE: case POINTER_TYPE:
case REFERENCE_TYPE: case REFERENCE_TYPE:
...@@ -5994,7 +5994,7 @@ check_return_expr (tree retval) ...@@ -5994,7 +5994,7 @@ check_return_expr (tree retval)
returned expression uses the chosen variable somehow. And people expect returned expression uses the chosen variable somehow. And people expect
this restriction, anyway. (jason 2000-11-19) this restriction, anyway. (jason 2000-11-19)
See finish_function and finalize_nrv for the rest of this optimization. */ See finish_function and finalize_nrv for the rest of this optimization. */
if (fn_returns_value_p && flag_elide_constructors) if (fn_returns_value_p && flag_elide_constructors)
{ {
......
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