public inbox for gcc-patches@gcc.gnu.org
 help / color / mirror / Atom feed
* [C++ PATCH] Fix small typos in the coding rule enforcement warnings.
@ 2015-09-23 18:25 Ville Voutilainen
  0 siblings, 0 replies; only message in thread
From: Ville Voutilainen @ 2015-09-23 18:25 UTC (permalink / raw)
  To: gcc-patches

[-- 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" }
 

^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2015-09-23 18:23 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2015-09-23 18:25 [C++ PATCH] Fix small typos in the coding rule enforcement warnings Ville Voutilainen

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).