* class.c: Fix comment typos.
authorkazu <kazu@138bc75d-0d04-0410-961f-82ee72b054a4>
Sat, 31 Jan 2004 17:58:53 +0000 (17:58 +0000)
committerkazu <kazu@138bc75d-0d04-0410-961f-82ee72b054a4>
Sat, 31 Jan 2004 17:58:53 +0000 (17:58 +0000)
* decl.c: Likewise.
* error.c: Likewise.
* parser.c: Likewise.
* pt.c: Likewise.
* search.c: Likewise.
* typeck.c: Likewise.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@77045 138bc75d-0d04-0410-961f-82ee72b054a4

gcc/cp/ChangeLog
gcc/cp/class.c
gcc/cp/decl.c
gcc/cp/error.c
gcc/cp/parser.c
gcc/cp/pt.c
gcc/cp/search.c
gcc/cp/typeck.c

index 825a6e5..aafbcb0 100644 (file)
@@ -1,3 +1,13 @@
+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.
+
 2004-01-30  Richard Henderson  <rth@redhat.com>
 
         PR c++/13693
index d97f850..23ca83d 100644 (file)
@@ -1197,7 +1197,7 @@ handle_using_decl (tree using_decl, tree t)
     alter_access (t, fdecl, access);
 }
 \f
-/* 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 26955cf..a9e0316 100644 (file)
@@ -6008,7 +6008,7 @@ check_static_variable_definition (tree decl, tree type)
       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 bb6ff34..796052e 100644 (file)
@@ -941,7 +941,7 @@ dump_decl (tree t, int flags)
 
     default:
       pp_unsupported_tree (cxx_pp, t);
-      /* Fallthrough to error.  */
+      /* Fall through to error.  */
 
     case ERROR_MARK:
       pp_identifier (cxx_pp, "<declaration error>");
index 77f703f..1348b50 100644 (file)
@@ -1065,7 +1065,7 @@ typedef enum cp_parser_flags
 
 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 @@ cp_parser_base_specifier (cp_parser* parser)
          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 @@ cp_parser_pre_parsed_nested_name_specifier (cp_parser *parser)
   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 ba296c7..5320677 100644 (file)
@@ -1092,7 +1092,7 @@ register_specialization (tree spec, tree tmpl, tree args)
 
                         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 @@ tsubst_copy_and_build (tree t,
     {
     case USING_DECL:
       t = DECL_NAME (t);
-      /* Fallthrough.  */
+      /* Fall through.  */
     case IDENTIFIER_NODE:
       {
        tree decl;
index 15927c6..b8470af 100644 (file)
@@ -210,7 +210,7 @@ lookup_base_r (tree binfo, tree base, base_access access,
          
        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 137cede..1338085 100644 (file)
@@ -5477,7 +5477,7 @@ build_ptrmemfunc (tree type, tree pfn, int force)
    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