diff options
author | Kazu Hirata <kazu@cs.umass.edu> | 2004-01-31 17:58:53 +0000 |
---|---|---|
committer | Kazu Hirata <kazu@gcc.gnu.org> | 2004-01-31 17:58:53 +0000 |
commit | 852dcbdd7834df145afa036f5d591da9429ec88a (patch) | |
tree | 6dc49a41a27558e4d5eacfb8dab7380f1ad76f12 | |
parent | 8de63ee0d7b3402ba05ec9ab283f287cc38f68fe (diff) | |
download | gcc-852dcbdd7834df145afa036f5d591da9429ec88a.zip gcc-852dcbdd7834df145afa036f5d591da9429ec88a.tar.gz gcc-852dcbdd7834df145afa036f5d591da9429ec88a.tar.bz2 |
class.c: Fix comment typos.
* class.c: Fix comment typos.
* decl.c: Likewise.
* error.c: Likewise.
* parser.c: Likewise.
* pt.c: Likewise.
* search.c: Likewise.
* typeck.c: Likewise.
From-SVN: r77045
-rw-r--r-- | gcc/cp/ChangeLog | 10 | ||||
-rw-r--r-- | gcc/cp/class.c | 2 | ||||
-rw-r--r-- | gcc/cp/decl.c | 2 | ||||
-rw-r--r-- | gcc/cp/error.c | 2 | ||||
-rw-r--r-- | gcc/cp/parser.c | 6 | ||||
-rw-r--r-- | gcc/cp/pt.c | 4 | ||||
-rw-r--r-- | gcc/cp/search.c | 2 | ||||
-rw-r--r-- | gcc/cp/typeck.c | 2 |
8 files changed, 20 insertions, 10 deletions
diff --git a/gcc/cp/ChangeLog b/gcc/cp/ChangeLog index 825a6e5..aafbcb0 100644 --- a/gcc/cp/ChangeLog +++ b/gcc/cp/ChangeLog @@ -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 diff --git a/gcc/cp/class.c b/gcc/cp/class.c index d97f850..23ca83d 100644 --- a/gcc/cp/class.c +++ b/gcc/cp/class.c @@ -1197,7 +1197,7 @@ handle_using_decl (tree using_decl, tree t) 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. */ diff --git a/gcc/cp/decl.c b/gcc/cp/decl.c index 26955cf..a9e0316 100644 --- a/gcc/cp/decl.c +++ b/gcc/cp/decl.c @@ -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; diff --git a/gcc/cp/error.c b/gcc/cp/error.c index bb6ff34..796052e 100644 --- a/gcc/cp/error.c +++ b/gcc/cp/error.c @@ -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>"); diff --git a/gcc/cp/parser.c b/gcc/cp/parser.c index 77f703f..1348b50 100644 --- a/gcc/cp/parser.c +++ b/gcc/cp/parser.c @@ -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, diff --git a/gcc/cp/pt.c b/gcc/cp/pt.c index ba296c7..5320677 100644 --- a/gcc/cp/pt.c +++ b/gcc/cp/pt.c @@ -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; diff --git a/gcc/cp/search.c b/gcc/cp/search.c index 15927c6..b8470af 100644 --- a/gcc/cp/search.c +++ b/gcc/cp/search.c @@ -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; diff --git a/gcc/cp/typeck.c b/gcc/cp/typeck.c index 137cede..1338085 100644 --- a/gcc/cp/typeck.c +++ b/gcc/cp/typeck.c @@ -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 |