diff options
author | Gabriel Dos Reis <gdr@integrable-solutions.net> | 2004-10-10 21:36:42 +0000 |
---|---|---|
committer | Gabriel Dos Reis <gdr@gcc.gnu.org> | 2004-10-10 21:36:42 +0000 |
commit | a82e1a7d187eeab0dee1ee832c364151d142c7c0 (patch) | |
tree | 5cb21df501c05a366c39fc157980cf5347da3f71 /gcc/cp/rtti.c | |
parent | bba5733fee39b6ce6e73e8637fd2cde9c16ea399 (diff) | |
download | gcc-a82e1a7d187eeab0dee1ee832c364151d142c7c0.zip gcc-a82e1a7d187eeab0dee1ee832c364151d142c7c0.tar.gz gcc-a82e1a7d187eeab0dee1ee832c364151d142c7c0.tar.bz2 |
Convert diagnostics to use quoting flag q 7/n
cp/
Convert diagnostics to use quoting flag q 7/n
* typeck.c (composite_pointer_type_r, composite_pointer_type,
cxx_sizeof_or_alignof_type, cxx_sizeof_or_alignof_expr,
string_conv_p, build_class_member_access_expr,
build_class_member_access_expr, lookup_destructor,
finish_class_member_access_expr, build_indirect_ref,
get_member_function_from_ptrfunc, build_function_call,
convert_arguments, build_binary_op, pointer_diff,
build_unary_op,
check_for_casting_away_constness, build_static_cast,
build_reinterpret_cast, build_const_cast, build_c_cast,
build_modify_expr, get_delta_difference, build_ptrmemfunc,
dubious_conversion_warnings, convert_for_assignment,
convert_for_initialization,
maybe_warn_about_returning_address_of_local,
check_return_expr):
Use quoting marks.
* typeck2.c (error_not_base_type, readonly_error,
abstract_virtuals_error, cxx_incomplete_type_diagnostic,
store_init_value, digest_init, build_x_arrow,
build_m_component_ref, require_complete_eh_spec_types):
Likewise.
* tree.c (cp_build_qualified_type_real,
handle_java_interface_attribute,
handle_init_priority_attribute):
Likewise.
* semantics.c (finish_asm_stmt, finish_non_static_data_member,
finish_pseudo_destructor_expr,
check_template_template_default_arg, begin_class_definition,
finish_base_specifier, qualified_name_lookup_error,
finish_id_expression, finish_typeof): Likewise.
* search.c (lookup_base, check_final_overrider,
look_for_overrides_r): Likewise.
* rtti.c (get_tinfo_decl, build_dynamic_cast_1): Likewise.
testsuite/
* g++.dg/overload/pmf1.C: Adjust quoting marks.
* g++.dg/warn/incomplete1.C: Likewise.
* g++.dg/template/qualttp20.C: Likewise.
From-SVN: r88854
Diffstat (limited to 'gcc/cp/rtti.c')
-rw-r--r-- | gcc/cp/rtti.c | 15 |
1 files changed, 8 insertions, 7 deletions
diff --git a/gcc/cp/rtti.c b/gcc/cp/rtti.c index b995726..c2d5d18 100644 --- a/gcc/cp/rtti.c +++ b/gcc/cp/rtti.c @@ -318,7 +318,8 @@ get_tinfo_decl (tree type) if (COMPLETE_TYPE_P (type) && TREE_CODE (TYPE_SIZE (type)) != INTEGER_CST) { - error ("cannot create type information for type `%T' because its size is variable", + error ("cannot create type information for type %qT because " + "its size is variable", type); return error_mark_node; } @@ -570,8 +571,8 @@ build_dynamic_cast_1 (tree type, tree expr) && TREE_CODE (TREE_TYPE (old_expr)) == RECORD_TYPE) { tree expr = throw_bad_cast (); - warning ("dynamic_cast of `%#D' to `%#T' can never succeed", - old_expr, type); + warning ("dynamic_cast of %q#D to %q#T can never succeed", + old_expr, type); /* Bash it to the expected type. */ TREE_TYPE (expr) = type; return expr; @@ -584,8 +585,8 @@ build_dynamic_cast_1 (tree type, tree expr) if (TREE_CODE (op) == VAR_DECL && TREE_CODE (TREE_TYPE (op)) == RECORD_TYPE) { - warning ("dynamic_cast of `%#D' to `%#T' can never succeed", - op, type); + warning ("dynamic_cast of %q#D to %q#T can never succeed", + op, type); retval = build_int_cst (type, 0); return retval; } @@ -663,8 +664,8 @@ build_dynamic_cast_1 (tree type, tree expr) errstr = "source type is not polymorphic"; fail: - error ("cannot dynamic_cast `%E' (of type `%#T') to type `%#T' (%s)", - expr, exprtype, type, errstr); + error ("cannot dynamic_cast %qE (of type %q#T) to type %q#T (%s)", + expr, exprtype, type, errstr); return error_mark_node; } |