public inbox for gcc-patches@gcc.gnu.org
 help / color / mirror / Atom feed
From: Ville Voutilainen <ville.voutilainen@gmail.com>
To: "gcc-patches@gcc.gnu.org" <gcc-patches@gcc.gnu.org>
Subject: [C++ PATCH] Fix small typos in the coding rule enforcement warnings.
Date: Wed, 23 Sep 2015 18:25:00 -0000	[thread overview]
Message-ID: <CAFk2RUae_aevVWAqiebr2KAEkhhgKOMDzhYdf8HG-cKAw4R90A@mail.gmail.com> (raw)

[-- Attachment #1: Type: text/plain, Size: 474 bytes --]

Tested on Linux-PPC64, committed as obvious.

/cp
2015-09-23  Ville Voutilainen  <ville.voutilainen@gmail.com>

    Fix small typos in the coding rule enforcement warnings.
    * parser.c (cp_parser_namespace_definition): Replace 'namepace'
    with 'namespace'.

/testsuite
2015-09-23  Ville Voutilainen  <ville.voutilainen@gmail.com>

    Fix small typos in the coding rule enforcement warnings.
    * g++.dg/diagnostic/disable.C: Replace 'namepace'
    with 'namespace'.

[-- Attachment #2: coding-rule-enforcement-typo.diff --]
[-- Type: text/plain, Size: 956 bytes --]

diff --git a/gcc/cp/parser.c b/gcc/cp/parser.c
index cc920926e..1148156 100644
--- a/gcc/cp/parser.c
+++ b/gcc/cp/parser.c
@@ -17043,7 +17043,7 @@ cp_parser_namespace_definition (cp_parser* parser)
 
   has_visibility = handle_namespace_attrs (current_namespace, attribs);
 
-  warning  (OPT_Wnamespaces, "namepace %qD entered", current_namespace);
+  warning  (OPT_Wnamespaces, "namespace %qD entered", current_namespace);
 
   /* Parse the body of the namespace.  */
   cp_parser_namespace_body (parser);
diff --git a/gcc/testsuite/g++.dg/diagnostic/disable.C b/gcc/testsuite/g++.dg/diagnostic/disable.C
index a69033d..7d86e07 100644
--- a/gcc/testsuite/g++.dg/diagnostic/disable.C
+++ b/gcc/testsuite/g++.dg/diagnostic/disable.C
@@ -3,7 +3,7 @@
 #include <iostream>
 #include <algorithm>
 
-namespace foo { } // { dg-warning "namepace" }
+namespace foo { } // { dg-warning "namespace" }
 
 template <typename X> X Foo (); // { dg-warning "template" }
 

                 reply	other threads:[~2015-09-23 18:23 UTC|newest]

Thread overview: [no followups] expand[flat|nested]  mbox.gz  Atom feed

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=CAFk2RUae_aevVWAqiebr2KAEkhhgKOMDzhYdf8HG-cKAw4R90A@mail.gmail.com \
    --to=ville.voutilainen@gmail.com \
    --cc=gcc-patches@gcc.gnu.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).