diff options
author | Jason Merrill <jason@gcc.gnu.org> | 2019-09-14 14:45:46 -0400 |
---|---|---|
committer | Jason Merrill <jason@gcc.gnu.org> | 2019-09-14 14:45:46 -0400 |
commit | 62dca3d53ee985e5fd69eb5e2611a8d157ea7bdc (patch) | |
tree | dcbd63867c60930618f0bd24a26709bb8da7bebb /gcc/cp/parser.c | |
parent | 603a4ad49978d2a967a1996ac626531200553715 (diff) | |
download | gcc-62dca3d53ee985e5fd69eb5e2611a8d157ea7bdc.zip gcc-62dca3d53ee985e5fd69eb5e2611a8d157ea7bdc.tar.gz gcc-62dca3d53ee985e5fd69eb5e2611a8d157ea7bdc.tar.bz2 |
Formatting and comment syntax adjustments.
From-SVN: r275717
Diffstat (limited to 'gcc/cp/parser.c')
-rw-r--r-- | gcc/cp/parser.c | 14 |
1 files changed, 8 insertions, 6 deletions
diff --git a/gcc/cp/parser.c b/gcc/cp/parser.c index 254a77b..b2fb150 100644 --- a/gcc/cp/parser.c +++ b/gcc/cp/parser.c @@ -19734,7 +19734,7 @@ cp_parser_alias_declaration (cp_parser* parser) if (decl == error_mark_node) return decl; - // Attach constraints to the alias declaration. + /* Attach constraints to the alias declaration. */ if (flag_concepts && current_template_parms) { tree reqs = TEMPLATE_PARMS_CONSTRAINTS (current_template_parms); @@ -22551,12 +22551,14 @@ cp_parser_parameter_declaration (cp_parser *parser, && !LAMBDA_TYPE_P (current_class_type)) default_argument = cp_parser_cache_defarg (parser, /*nsdmi=*/false); - // A constrained-type-specifier may declare a type template-parameter. + /* A constrained-type-specifier may declare a type + template-parameter. */ else if (declares_constrained_type_template_parameter (type)) default_argument = cp_parser_default_type_template_argument (parser); - // A constrained-type-specifier may declare a template-template-parameter. + /* A constrained-type-specifier may declare a + template-template-parameter. */ else if (declares_constrained_template_template_parameter (type)) default_argument = cp_parser_default_template_template_argument (parser); @@ -28475,9 +28477,9 @@ cp_parser_single_declaration (cp_parser* parser, if (cp_parser_declares_only_class_p (parser) || (declares_class_or_enum & 2)) { - // If this is a declaration, but not a definition, associate - // any constraints with the type declaration. Constraints - // are associated with definitions in cp_parser_class_specifier. + /* If this is a declaration, but not a definition, associate + any constraints with the type declaration. Constraints + are associated with definitions in cp_parser_class_specifier. */ if (declares_class_or_enum == 1) associate_classtype_constraints (decl_specifiers.type); |