aboutsummaryrefslogtreecommitdiff
path: root/gcc/cp/cxx-pretty-print.c
diff options
context:
space:
mode:
authorMarek Polacek <polacek@redhat.com>2020-05-07 08:41:54 -0400
committerMarek Polacek <polacek@redhat.com>2020-05-07 13:25:14 -0400
commitd20b71735eef2ea807d74252f78bba10f93b268c (patch)
treeeb5c3b943d6fbc298618abd928027021198b857d /gcc/cp/cxx-pretty-print.c
parent5438a28a050f8ecea1352134047efeff5111b603 (diff)
downloadgcc-d20b71735eef2ea807d74252f78bba10f93b268c.zip
gcc-d20b71735eef2ea807d74252f78bba10f93b268c.tar.gz
gcc-d20b71735eef2ea807d74252f78bba10f93b268c.tar.bz2
c++: Fix spelling of non-static
I was looking at DR 296 and noticed that we say "nonstatic" instead of "non-static", which is the version the standard uses. So this patch fixes the spelling throughout the front end. Did not check e.g. non-dependent or any other. * decl.c (grok_op_properties): Fix spelling of non-static. * typeck.c (build_class_member_access_expr): Likewise. * g++.dg/other/operator1.C: Adjust expected message. * g++.dg/overload/operator2.C: Likewise. * g++.dg/template/error30.C: Likewise. * g++.old-deja/g++.jason/operator.C: Likewise.
Diffstat (limited to 'gcc/cp/cxx-pretty-print.c')
-rw-r--r--gcc/cp/cxx-pretty-print.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/gcc/cp/cxx-pretty-print.c b/gcc/cp/cxx-pretty-print.c
index a26291e..188462a 100644
--- a/gcc/cp/cxx-pretty-print.c
+++ b/gcc/cp/cxx-pretty-print.c
@@ -1534,7 +1534,7 @@ pp_cxx_parameter_declaration_clause (cxx_pretty_printer *pp, tree t)
}
bool first = true;
- /* Skip artificial parameter for nonstatic member functions. */
+ /* Skip artificial parameter for non-static member functions. */
if (TREE_CODE (t) == METHOD_TYPE)
types = TREE_CHAIN (types);