aboutsummaryrefslogtreecommitdiff
path: root/gcc/cp/parser.c
diff options
context:
space:
mode:
authorKazu Hirata <kazu@cs.umass.edu>2003-10-22 23:42:47 +0000
committerKazu Hirata <kazu@gcc.gnu.org>2003-10-22 23:42:47 +0000
commit04c06002c256ed3d1a3e8296476d6be8feeafff2 (patch)
treef72ffc26c6ebb119ba1601c12a4684c2b5d067d5 /gcc/cp/parser.c
parent3cfa37023cc9d77ec91331d215387c1429e442b3 (diff)
downloadgcc-04c06002c256ed3d1a3e8296476d6be8feeafff2.zip
gcc-04c06002c256ed3d1a3e8296476d6be8feeafff2.tar.gz
gcc-04c06002c256ed3d1a3e8296476d6be8feeafff2.tar.bz2
call.c: Fix comment formatting.
* call.c: Fix comment formatting. * class.c: Likewise. * cxx-pretty-print.c: Likewise. * init.c: Likewise. * parser.c: Likewise. * pt.c: Likewise. * semantics.c: Likewise. * tree.c: Likewise. * typeck.c: Likewise. * typeck2.c: Likewise. From-SVN: r72828
Diffstat (limited to 'gcc/cp/parser.c')
-rw-r--r--gcc/cp/parser.c18
1 files changed, 9 insertions, 9 deletions
diff --git a/gcc/cp/parser.c b/gcc/cp/parser.c
index b6416e8..5a0c96e 100644
--- a/gcc/cp/parser.c
+++ b/gcc/cp/parser.c
@@ -1054,7 +1054,7 @@ typedef enum cp_parser_declarator_kind
CP_PARSER_DECLARATOR_ABSTRACT,
/* We want a named declarator. */
CP_PARSER_DECLARATOR_NAMED,
- /* We don't mind, but the name must be an unqualified-id */
+ /* We don't mind, but the name must be an unqualified-id. */
CP_PARSER_DECLARATOR_EITHER
} cp_parser_declarator_kind;
@@ -1260,7 +1260,7 @@ typedef struct cp_parser GTY(())
unsigned num_template_parameter_lists;
} cp_parser;
-/* The type of a function that parses some kind of expression */
+/* The type of a function that parses some kind of expression. */
typedef tree (*cp_parser_expression_fn) (cp_parser *);
/* Prototypes. */
@@ -5294,7 +5294,7 @@ cp_parser_expression_statement (cp_parser* parser, bool in_statement_expr_p)
tree statement = NULL_TREE;
/* If the next token is a ';', then there is no expression
- statement. */
+ statement. */
if (cp_lexer_next_token_is_not (parser->lexer, CPP_SEMICOLON))
statement = cp_parser_expression (parser);
@@ -7735,7 +7735,7 @@ cp_parser_template_name (cp_parser* parser,
template-argument
template-argument-list , template-argument
- Returns a TREE_VEC containing the arguments. */
+ Returns a TREE_VEC containing the arguments. */
static tree
cp_parser_template_argument_list (cp_parser* parser)
@@ -7751,7 +7751,7 @@ cp_parser_template_argument_list (cp_parser* parser)
tree argument;
if (n_args)
- /* Consume the comma. */
+ /* Consume the comma. */
cp_lexer_consume_token (parser->lexer);
/* Parse the template-argument. */
@@ -7864,7 +7864,7 @@ cp_parser_template_argument (cp_parser* parser)
-- the address of an object or function with external linkage...
- -- a pointer to member... */
+ -- a pointer to member... */
/* Look for a non-type template parameter. */
if (cp_lexer_next_token_is (parser->lexer, CPP_NAME))
{
@@ -7941,7 +7941,7 @@ cp_parser_template_argument (cp_parser* parser)
cp_parser_error (parser, "invalid non-type template argument");
return error_mark_node;
}
- /* The argument must be a constant-expression. */
+ /* The argument must be a constant-expression. */
argument = cp_parser_constant_expression (parser,
/*allow_non_constant_p=*/false,
/*non_constant_p=*/NULL);
@@ -8306,7 +8306,7 @@ cp_parser_simple_type_specifier (cp_parser* parser, cp_parser_flags flags,
/* Consume the `typeof' token. */
cp_lexer_consume_token (parser->lexer);
- /* Parse the operand to `typeof' */
+ /* Parse the operand to `typeof'. */
operand = cp_parser_sizeof_operand (parser, RID_TYPEOF);
/* If it is not already a TYPE, take its type. */
if (!TYPE_P (operand))
@@ -12045,7 +12045,7 @@ cp_parser_member_declaration (cp_parser* parser)
CPP_SEMICOLON))
{
cp_parser_error (parser, "expected `;'");
- /* Skip tokens until we find a `;' */
+ /* Skip tokens until we find a `;'. */
cp_parser_skip_to_end_of_statement (parser);
break;