diff options
author | Nathan Sidwell <nathan@acm.org> | 2020-07-14 05:57:57 -0700 |
---|---|---|
committer | Nathan Sidwell <nathan@acm.org> | 2020-07-14 06:27:07 -0700 |
commit | 31dbaab57fef485412a0369a222b9c252ad2713b (patch) | |
tree | 1cdd29a5079b04f3f34dabc3495732ba43312851 /gcc/cp/tree.c | |
parent | 6039cb96d1014373470a27f02e24c2c5e821a06c (diff) | |
download | gcc-31dbaab57fef485412a0369a222b9c252ad2713b.zip gcc-31dbaab57fef485412a0369a222b9c252ad2713b.tar.gz gcc-31dbaab57fef485412a0369a222b9c252ad2713b.tar.bz2 |
c++: Comments & formatting
I found some bad formatting and misleading or incomplete comments
during my spelunking around the c++FE. May as well clean up trunk and
record what I noted.
gcc/cp/
* cp-tree.h: Correct some tree lang flag comments,
reformat some structure definitions. Note some structure
sizes. Clarify some comments.
(yyungetc): Delete. Not been a thing for some time.
* class.c (copy_fndecl_with_name): Comment.
(check_bases_and_members): Unnecessary {}.
(layout_class_type): Comment.
* cp-tree.def (UNBOUND_CLASS_TEMPLATE): Adjust comment.
* decl.c: Fix some formatting & whitespace issues.
(function_requirements_equivalent_p): Note why
substitutions are needed.
* decl2.c (no_linkage_error): Note that heroics about
'typedef struct { ... };' are no longer needed.
* method.c: Whitespace.
* name-lookup.c: Whitespace.
(add_decl_to_level): Reformat a line.
(print_binding_stack): Mark as DEBUG_FUNCTION.
(has_using_namespace_std_directive_p): Delete comment.
* pt.c: Whitespace
* ptree.c: Whitespace.
* rtti.c: Whitespace & comment.
* tree.c: Comment.
* typeck.c (structural_comptypes): Add comment.
Diffstat (limited to 'gcc/cp/tree.c')
-rw-r--r-- | gcc/cp/tree.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/gcc/cp/tree.c b/gcc/cp/tree.c index 1fcba55..a830c90 100644 --- a/gcc/cp/tree.c +++ b/gcc/cp/tree.c @@ -2296,7 +2296,7 @@ ovl_skip_hidden (tree ovl) return ovl; } -/* NODE is an OVL_HIDDEN_P node which is now revealed. */ +/* NODE is an OVL_HIDDEN_P node that is now revealed. */ tree ovl_iterator::reveal_node (tree overload, tree node) |