mirror of
git://gcc.gnu.org/git/gcc.git
synced 2025-04-21 05:00:23 +08:00
call.c, [...]: Fix comment typo(s).
* call.c, class.c, cp-tree.h, decl2.c, error.c, init.c, mangle.c, parser.c: Fix comment typo(s). From-SVN: r95517
This commit is contained in:
parent
3f1176568b
commit
78dcd41a31
@ -1,3 +1,8 @@
|
||||
2005-02-24 Volker Reichelt <reichelt@igpm.rwth-aachen.de>
|
||||
|
||||
* call.c, class.c, cp-tree.h, decl2.c, error.c, init.c, mangle.c,
|
||||
parser.c: Fix comment typo(s).
|
||||
|
||||
2005-02-24 Jakub Jelinek <jakub@redhat.com>
|
||||
|
||||
PR c++/20175
|
||||
|
@ -538,8 +538,7 @@ build_conv (conversion_kind code, tree type, conversion *from)
|
||||
}
|
||||
|
||||
/* Build a representation of the identity conversion from EXPR to
|
||||
itself. The TYPE should match the the type of EXPR, if EXPR is
|
||||
non-NULL. */
|
||||
itself. The TYPE should match the type of EXPR, if EXPR is non-NULL. */
|
||||
|
||||
static conversion *
|
||||
build_identity_conv (tree type, tree expr)
|
||||
@ -2450,7 +2449,7 @@ print_z_candidates (struct z_candidate *candidates)
|
||||
/* USER_SEQ is a user-defined conversion sequence, beginning with a
|
||||
USER_CONV. STD_SEQ is the standard conversion sequence applied to
|
||||
the result of the conversion function to convert it to the final
|
||||
desired type. Merge the the two sequences into a single sequence,
|
||||
desired type. Merge the two sequences into a single sequence,
|
||||
and return the merged sequence. */
|
||||
|
||||
static conversion *
|
||||
|
@ -3505,7 +3505,7 @@ layout_empty_base (tree binfo, tree eoc, splay_tree offsets)
|
||||
return atend;
|
||||
}
|
||||
|
||||
/* Layout the the base given by BINFO in the class indicated by RLI.
|
||||
/* Layout the base given by BINFO in the class indicated by RLI.
|
||||
*BASE_ALIGN is a running maximum of the alignments of
|
||||
any base class. OFFSETS gives the location of empty base
|
||||
subobjects. T is the most derived type. Return nonzero if the new
|
||||
@ -4035,7 +4035,7 @@ check_bases_and_members (tree t)
|
||||
/* Nonzero if the implicitly generated copy constructor should take
|
||||
a non-const reference argument. */
|
||||
int cant_have_const_ctor;
|
||||
/* Nonzero if the the implicitly generated assignment operator
|
||||
/* Nonzero if the implicitly generated assignment operator
|
||||
should take a non-const reference argument. */
|
||||
int no_const_asn_ref;
|
||||
tree access_decls;
|
||||
@ -7680,8 +7680,8 @@ build_rtti_vtbl_entries (tree binfo, vtbl_init_data* vid)
|
||||
*vid->last_init = build_tree_list (NULL_TREE, init);
|
||||
vid->last_init = &TREE_CHAIN (*vid->last_init);
|
||||
|
||||
/* Add the offset-to-top entry. It comes earlier in the vtable that
|
||||
the the typeinfo entry. Convert the offset to look like a
|
||||
/* Add the offset-to-top entry. It comes earlier in the vtable than
|
||||
the typeinfo entry. Convert the offset to look like a
|
||||
function pointer, so that we can put it in the vtable. */
|
||||
init = build_nop (vfunc_ptr_type_node, offset);
|
||||
*vid->last_init = build_tree_list (NULL_TREE, init);
|
||||
|
@ -1683,7 +1683,7 @@ struct lang_decl GTY(())
|
||||
|
||||
/* Nonzero if NODE (a FUNCTION_DECL) is a destructor, but not the
|
||||
specialized in-charge constructor, in-charge deleting constructor,
|
||||
or the the base destructor. */
|
||||
or the base destructor. */
|
||||
#define DECL_MAYBE_IN_CHARGE_DESTRUCTOR_P(NODE) \
|
||||
(DECL_DESTRUCTOR_P (NODE) && !DECL_CLONED_FUNCTION_P (NODE))
|
||||
|
||||
@ -2836,7 +2836,7 @@ struct lang_decl GTY(())
|
||||
|
||||
/* Nonzero if this VAR_DECL or FUNCTION_DECL has already been
|
||||
instantiated, i.e. its definition has been generated from the
|
||||
pattern given in the the template. */
|
||||
pattern given in the template. */
|
||||
#define DECL_TEMPLATE_INSTANTIATED(NODE) \
|
||||
DECL_LANG_FLAG_1 (VAR_OR_FUNCTION_DECL_CHECK (NODE))
|
||||
|
||||
@ -4371,7 +4371,7 @@ extern tree mangle_ref_init_variable (tree);
|
||||
/* in dump.c */
|
||||
extern bool cp_dump_tree (void *, tree);
|
||||
|
||||
/* in cp-simplify.c */
|
||||
/* in cp-gimplify.c */
|
||||
extern int cp_gimplify_expr (tree *, tree *, tree *);
|
||||
extern void cp_genericize (tree);
|
||||
|
||||
|
@ -2437,7 +2437,7 @@ do_static_initialization (tree decl, tree init)
|
||||
if (init)
|
||||
finish_expr_stmt (init);
|
||||
|
||||
/* If we're using __cxa_atexit, register a a function that calls the
|
||||
/* If we're using __cxa_atexit, register a function that calls the
|
||||
destructor for the object. */
|
||||
if (flag_use_cxa_atexit)
|
||||
finish_expr_stmt (register_dtor_fn (decl));
|
||||
|
@ -2201,7 +2201,7 @@ print_instantiation_full_context (diagnostic_context *context)
|
||||
else
|
||||
{
|
||||
if (current_function_decl == TINST_DECL (p))
|
||||
/* Avoid redundancy with the the "In function" line. */;
|
||||
/* Avoid redundancy with the "In function" line. */;
|
||||
else
|
||||
pp_verbatim (context->printer,
|
||||
"%s: In instantiation of %qs:\n",
|
||||
|
@ -1762,7 +1762,7 @@ build_new_1 (tree exp)
|
||||
from ELT_TYPE for a multi-dimensional array; ELT_TYPE is never an
|
||||
ARRAY_TYPE, but TYPE may be an ARRAY_TYPE. */
|
||||
tree type;
|
||||
/* A pointer type pointing to to the FULL_TYPE. */
|
||||
/* A pointer type pointing to the FULL_TYPE. */
|
||||
tree full_pointer_type;
|
||||
tree outer_nelts = NULL_TREE;
|
||||
tree nelts = NULL_TREE;
|
||||
|
@ -2230,7 +2230,7 @@ write_template_arg (tree node)
|
||||
MANGLE_TRACE_TREE ("template-arg", node);
|
||||
|
||||
/* A template template parameter's argument list contains TREE_LIST
|
||||
nodes of which the value field is the the actual argument. */
|
||||
nodes of which the value field is the actual argument. */
|
||||
if (code == TREE_LIST)
|
||||
{
|
||||
node = TREE_VALUE (node);
|
||||
|
@ -9580,7 +9580,7 @@ cp_parser_simple_type_specifier (cp_parser* parser,
|
||||
typedef-name:
|
||||
identifier
|
||||
|
||||
Returns a TYPE_DECL for the the type. */
|
||||
Returns a TYPE_DECL for the type. */
|
||||
|
||||
static tree
|
||||
cp_parser_type_name (cp_parser* parser)
|
||||
@ -14333,7 +14333,7 @@ cp_parser_lookup_name (cp_parser *parser, tree name,
|
||||
lookup_member, we must enter the scope here. */
|
||||
if (dependent_p)
|
||||
pushed_scope = push_scope (parser->scope);
|
||||
/* If the PARSER->SCOPE is a a template specialization, it
|
||||
/* If the PARSER->SCOPE is a template specialization, it
|
||||
may be instantiated during name lookup. In that case,
|
||||
errors may be issued. Even if we rollback the current
|
||||
tentative parse, those errors are valid. */
|
||||
|
Loading…
x
Reference in New Issue
Block a user