This is the mail archive of the gcc-patches@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[patch] cp: Fix comment typos.


Hi,

Committed as obvious.

Kazu Hirata

2004-01-31  Kazu Hirata  <kazu@cs.umass.edu>

	* class.c: Fix comment typos.
	* decl.c: Likewise.
	* error.c: Likewise.
	* parser.c: Likewise.
	* pt.c: Likewise.
	* search.c: Likewise.
	* typeck.c: Likewise.

Index: class.c
===================================================================
RCS file: /cvs/gcc/gcc/gcc/cp/class.c,v
retrieving revision 1.598
diff -u -r1.598 class.c
--- class.c	26 Jan 2004 17:41:50 -0000	1.598
+++ class.c	31 Jan 2004 17:54:08 -0000
@@ -1197,7 +1197,7 @@
     alter_access (t, fdecl, access);
 }
 
-/* Run through the base clases of T, updating
+/* Run through the base classes of T, updating
    CANT_HAVE_DEFAULT_CTOR_P, CANT_HAVE_CONST_CTOR_P, and
    NO_CONST_ASN_REF_P.  Also set flag bits in T based on properties of
    the bases.  */
Index: decl.c
===================================================================
RCS file: /cvs/gcc/gcc/gcc/cp/decl.c,v
retrieving revision 1.1177
diff -u -r1.1177 decl.c
--- decl.c	30 Jan 2004 16:35:03 -0000	1.1177
+++ decl.c	31 Jan 2004 17:54:14 -0000
@@ -6008,7 +6008,7 @@
       error ("invalid in-class initialization of static data member of non-integral type `%T'",
 	     type);
       /* If we just return the declaration, crashes will sometimes
-	 occur.  We therefore return void_type_node, as if this was a
+	 occur.  We therefore return void_type_node, as if this were a
 	 friend declaration, to cause callers to completely ignore
 	 this declaration.  */
       return 1;
Index: error.c
===================================================================
RCS file: /cvs/gcc/gcc/gcc/cp/error.c,v
retrieving revision 1.241
diff -u -r1.241 error.c
--- error.c	21 Dec 2003 21:07:30 -0000	1.241
+++ error.c	31 Jan 2004 17:54:14 -0000
@@ -941,7 +941,7 @@
 
     default:
       pp_unsupported_tree (cxx_pp, t);
-      /* Fallthrough to error.  */
+      /* Fall through to error.  */
 
     case ERROR_MARK:
       pp_identifier (cxx_pp, "<declaration error>");
Index: parser.c
===================================================================
RCS file: /cvs/gcc/gcc/gcc/cp/parser.c,v
retrieving revision 1.164
diff -u -r1.164 parser.c
--- parser.c	30 Jan 2004 17:01:28 -0000	1.164
+++ parser.c	31 Jan 2004 17:54:21 -0000
@@ -1065,7 +1065,7 @@
 
 typedef enum cp_parser_declarator_kind
 {
-  /* We want an abstract declartor.  */
+  /* We want an abstract declarator.  */
   CP_PARSER_DECLARATOR_ABSTRACT,
   /* We want a named declarator.  */
   CP_PARSER_DECLARATOR_NAMED,
@@ -12791,7 +12791,7 @@
 	  break;
 	}
     }
-  /* It is not uncommon to see programs mechanically, errouneously, use
+  /* It is not uncommon to see programs mechanically, erroneously, use
      the 'typename' keyword to denote (dependent) qualified types
      as base classes.  */
   if (cp_lexer_next_token_is_keyword (parser->lexer, RID_TYPENAME))
@@ -15050,7 +15050,7 @@
   parser->object_scope = NULL_TREE;
 }
 
-/* Add tokens to CACHE until an non-nested END token appears.  */
+/* Add tokens to CACHE until a non-nested END token appears.  */
 
 static void
 cp_parser_cache_group (cp_parser *parser, 
Index: pt.c
===================================================================
RCS file: /cvs/gcc/gcc/gcc/cp/pt.c,v
retrieving revision 1.821
diff -u -r1.821 pt.c
--- pt.c	26 Jan 2004 17:41:50 -0000	1.821
+++ pt.c	31 Jan 2004 17:54:26 -0000
@@ -1092,7 +1092,7 @@
 
 			 If there was a definition for the template, but
 			 not for the specialization, we want this to
-			 look as if there is no definition, and vice
+			 look as if there were no definition, and vice
 			 versa.  */
 		      DECL_INITIAL (fn) = NULL_TREE;
 		      duplicate_decls (spec, fn);
@@ -8036,7 +8036,7 @@
     {
     case USING_DECL:
       t = DECL_NAME (t);
-      /* Fallthrough.  */
+      /* Fall through.  */
     case IDENTIFIER_NODE:
       {
 	tree decl;
Index: search.c
===================================================================
RCS file: /cvs/gcc/gcc/gcc/cp/search.c,v
retrieving revision 1.284
diff -u -r1.284 search.c
--- search.c	19 Dec 2003 23:28:10 -0000	1.284
+++ search.c	31 Jan 2004 17:54:27 -0000
@@ -210,7 +210,7 @@
 	  
 	case bk_same_type:
 	  bk = bk_proper_base;
-	  /* FALLTHROUGH */
+	  /* Fall through.  */
 	case bk_proper_base:
 	  my_friendly_assert (found == bk_not_base, 20010723);
 	  found = bk;
Index: typeck.c
===================================================================
RCS file: /cvs/gcc/gcc/gcc/cp/typeck.c,v
retrieving revision 1.522
diff -u -r1.522 typeck.c
--- typeck.c	29 Jan 2004 02:21:47 -0000	1.522
+++ typeck.c	31 Jan 2004 17:54:30 -0000
@@ -5477,7 +5477,7 @@
    given by CST.
 
    ??? There is no consistency as to the types returned for the above
-   values.  Some code acts as if its a sizetype and some as if its
+   values.  Some code acts as if it were a sizetype and some as if it were
    integer_type_node.  */
 
 void


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]