aboutsummaryrefslogtreecommitdiff
path: root/gcc/cp
diff options
context:
space:
mode:
authorJoseph Myers <joseph@codesourcery.com>2005-07-02 14:19:59 +0100
committerJoseph Myers <jsm28@gcc.gnu.org>2005-07-02 14:19:59 +0100
commitc85ce869e757158c55fd428befdb59ad5d537c1f (patch)
tree3339d42d6bdaab3f873b91e89993fa54cc7f96e7 /gcc/cp
parentdee158440e16ef7272d823b9bd5e6d414968fd8a (diff)
downloadgcc-c85ce869e757158c55fd428befdb59ad5d537c1f.zip
gcc-c85ce869e757158c55fd428befdb59ad5d537c1f.tar.gz
gcc-c85ce869e757158c55fd428befdb59ad5d537c1f.tar.bz2
c.opt, [...]: Remove "." from end of help texts.
* c.opt, common.opt, config/bfin/bfin.opt, config/pa/pa.opt, config/rs6000/rs6000.opt, params.def: Remove "." from end of help texts. * config/avr/avr.c: Do not use '`' as left quote. * config/rs6000/rs6000.c, config/s390/s390.c, opts.c, tree.c: Remove "." from end of diagnostics. Make diagnostics start with lowercase letter. cp: * name-lookup.c, parser.c: Use %q, %< and %> to quote in diagnostics. fortran: * lang.opt: Remove "." from end of help texts. objc: * objc-act.c: Use %q to quote in diagnostics. From-SVN: r101533
Diffstat (limited to 'gcc/cp')
-rw-r--r--gcc/cp/ChangeLog5
-rw-r--r--gcc/cp/name-lookup.c2
-rw-r--r--gcc/cp/parser.c10
3 files changed, 11 insertions, 6 deletions
diff --git a/gcc/cp/ChangeLog b/gcc/cp/ChangeLog
index 530b0e4..587d800 100644
--- a/gcc/cp/ChangeLog
+++ b/gcc/cp/ChangeLog
@@ -1,3 +1,8 @@
+2005-07-02 Joseph S. Myers <joseph@codesourcery.com>
+
+ * name-lookup.c, parser.c: Use %q, %< and %> to quote in
+ diagnostics.
+
2005-07-02 Zack Weinberg <zack@codesourcery.com>
Joseph S. Myers <joseph@codesourcery.com>
diff --git a/gcc/cp/name-lookup.c b/gcc/cp/name-lookup.c
index 50a92ca..d03fbb0 100644
--- a/gcc/cp/name-lookup.c
+++ b/gcc/cp/name-lookup.c
@@ -2825,7 +2825,7 @@ set_decl_namespace (tree decl, tree scope, bool friendp)
if (scope == current_namespace)
{
if (at_namespace_scope_p ())
- error ("explicit qualification in declaration of `%D'",
+ error ("explicit qualification in declaration of %qD",
decl);
return;
}
diff --git a/gcc/cp/parser.c b/gcc/cp/parser.c
index 2d17cde..bd39a67 100644
--- a/gcc/cp/parser.c
+++ b/gcc/cp/parser.c
@@ -16290,7 +16290,7 @@ cp_parser_objc_expression (cp_parser* parser)
break;
}
default:
- error ("misplaced `@%D' Objective-C++ construct", kwd->value);
+ error ("misplaced %<@%D%> Objective-C++ construct", kwd->value);
cp_parser_skip_to_end_of_block_or_statement (parser);
}
@@ -16431,7 +16431,7 @@ cp_parser_objc_encode_expression (cp_parser* parser)
if (!type)
{
- error ("`@encode' must specify a type as an argument");
+ error ("%<@encode%> must specify a type as an argument");
return error_mark_node;
}
@@ -17057,7 +17057,7 @@ cp_parser_objc_protocol_declaration (cp_parser* parser)
cp_lexer_consume_token (parser->lexer); /* Eat '@protocol'. */
if (cp_lexer_next_token_is_not (parser->lexer, CPP_NAME))
{
- error ("identifier expected after `@protocol'");
+ error ("identifier expected after %<@protocol%>");
goto finish;
}
@@ -17193,7 +17193,7 @@ cp_parser_objc_declaration (cp_parser* parser)
cp_parser_objc_end_implementation (parser);
break;
default:
- error ("misplaced `@%D' Objective-C++ construct", kwd->value);
+ error ("misplaced %<@%D%> Objective-C++ construct", kwd->value);
cp_parser_skip_to_end_of_block_or_statement (parser);
}
}
@@ -17324,7 +17324,7 @@ cp_parser_objc_statement (cp_parser * parser) {
case RID_AT_THROW:
return cp_parser_objc_throw_statement (parser);
default:
- error ("misplaced `@%D' Objective-C++ construct", kwd->value);
+ error ("misplaced %<@%D%> Objective-C++ construct", kwd->value);
cp_parser_skip_to_end_of_block_or_statement (parser);
}