This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
[patch] cp/*: Fix comment formatting.
- From: Kazu Hirata <kazu at cs dot umass dot edu>
- To: gcc-patches at gcc dot gnu dot org
- Date: Mon, 31 May 2004 04:43:11 -0400 (EDT)
- Subject: [patch] cp/*: Fix comment formatting.
Hi,
Committed as obvious.
Kazu Hirata
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.
Index: call.c
===================================================================
RCS file: /cvs/gcc/gcc/gcc/cp/call.c,v
retrieving revision 1.475
diff -u -r1.475 call.c
--- call.c 13 May 2004 06:40:12 -0000 1.475
+++ call.c 31 May 2004 08:34:59 -0000
@@ -3174,7 +3174,7 @@
We must avoid calling force_rvalue for expressions of type
"void" because it will complain that their value is being
- used. */
+ used. */
if (TREE_CODE (arg2) == THROW_EXPR
&& TREE_CODE (arg3) != THROW_EXPR)
{
@@ -6470,7 +6470,7 @@
TARGET_EXPR here. It is important that EXPR be a
TARGET_EXPR below since otherwise the INIT_EXPR will
attempt to make a bitwise copy of EXPR to initialize
- VAR. */
+ VAR. */
if (TREE_CODE (expr) != TARGET_EXPR)
expr = get_target_expr (expr);
/* Create the INIT_EXPR that will initialize the temporary
Index: class.c
===================================================================
RCS file: /cvs/gcc/gcc/gcc/cp/class.c,v
retrieving revision 1.615
diff -u -r1.615 class.c
--- class.c 28 May 2004 17:01:20 -0000 1.615
+++ class.c 31 May 2004 08:35:03 -0000
@@ -3012,7 +3012,7 @@
/* [class.union]
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)
{
cp_error_at ("`%D' may not be static because it is a member of a union", x);
Index: cp-tree.def
===================================================================
RCS file: /cvs/gcc/gcc/gcc/cp/cp-tree.def,v
retrieving revision 1.84
diff -u -r1.84 cp-tree.def
--- cp-tree.def 13 May 2004 06:40:16 -0000 1.84
+++ cp-tree.def 31 May 2004 08:35:03 -0000
@@ -103,7 +103,7 @@
A BASELINK is an expression; the TREE_TYPE of the BASELINK gives
the type of the expression. This type is either a FUNCTION_TYPE,
METHOD_TYPE, or `unknown_type_node' indicating that the function is
- overloaded. */
+ overloaded. */
DEFTREECODE (BASELINK, "baselink", 'x', 0)
/* Template definition. The following fields have the specified uses,
@@ -197,10 +197,10 @@
/* A using declaration. DECL_INITIAL contains the specified scope.
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,
- otherwise it will have a void type. */
+ otherwise it will have a void type. */
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)
/* An un-parsed default argument. Looks like an IDENTIFIER_NODE. */
@@ -237,7 +237,7 @@
that expression if it appeared in a template argument list. In
that situation, we create a NON_DEPENDENT_EXPR to take the place of
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)
/* CTOR_INITIALIZER is a placeholder in template code for a call to
Index: decl2.c
===================================================================
RCS file: /cvs/gcc/gcc/gcc/cp/decl2.c,v
retrieving revision 1.710
diff -u -r1.710 decl2.c
--- decl2.c 28 May 2004 22:35:42 -0000 1.710
+++ decl2.c 31 May 2004 08:35:05 -0000
@@ -1422,7 +1422,7 @@
linkonce sections, so that they will be merged with implicit
instantiations; otherwise we get duplicate symbol errors.
For Darwin we do not want explicit instantiations to be
- linkonce. */
+ linkonce. */
void
maybe_make_one_only (tree decl)
Index: name-lookup.c
===================================================================
RCS file: /cvs/gcc/gcc/gcc/cp/name-lookup.c,v
retrieving revision 1.55
diff -u -r1.55 name-lookup.c
--- name-lookup.c 28 May 2004 22:35:45 -0000 1.55
+++ name-lookup.c 31 May 2004 08:35:07 -0000
@@ -552,7 +552,7 @@
/* If appropriate, add decl to separate list of statics. We
include extern variables because they might turn out to be
static later. It's OK for this list to contain a few false
- positives. */
+ positives. */
if (b->kind == sk_namespace)
if ((TREE_CODE (decl) == VAR_DECL
&& (TREE_STATIC (decl) || DECL_EXTERNAL (decl)))
Index: pt.c
===================================================================
RCS file: /cvs/gcc/gcc/gcc/cp/pt.c,v
retrieving revision 1.855
diff -u -r1.855 pt.c
--- pt.c 24 May 2004 21:07:42 -0000 1.855
+++ pt.c 31 May 2004 08:35:13 -0000
@@ -9543,7 +9543,7 @@
/* Decide whether ARG can be unified with PARM, considering only the
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
check_cv_quals_for_unify (int strict, tree arg, tree parm)
@@ -10792,7 +10792,7 @@
a static archive's TOC. The problematic case is if we're doing
a non-extern explicit instantiation of an extern template: we
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 =
TARGET_EXPLICIT_INSTANTIATIONS_ONE_ONLY
Index: typeck.c
===================================================================
RCS file: /cvs/gcc/gcc/gcc/cp/typeck.c,v
retrieving revision 1.546
diff -u -r1.546 typeck.c
--- typeck.c 28 May 2004 23:34:39 -0000 1.546
+++ typeck.c 31 May 2004 08:35:16 -0000
@@ -1026,7 +1026,7 @@
if (!comptypes (TYPE_OFFSET_BASETYPE (t1), TYPE_OFFSET_BASETYPE (t2),
strict & ~COMPARE_REDECLARATION))
return false;
- /* Fall through. */
+ /* Fall through. */
case POINTER_TYPE:
case REFERENCE_TYPE:
@@ -5994,7 +5994,7 @@
returned expression uses the chosen variable somehow. And people expect
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)
{