diff --git a/src/libdredd/src/mutation_replace_expr.cc b/src/libdredd/src/mutation_replace_expr.cc index 372fcef3..66f86b7b 100644 --- a/src/libdredd/src/mutation_replace_expr.cc +++ b/src/libdredd/src/mutation_replace_expr.cc @@ -583,10 +583,10 @@ void MutationReplaceExpr::ReplaceExprWithFunctionCall( // but not for non-constants. This is catered for by inserting an explicit // cast. auto parents = ast_context.getParents(*expr_); - // This the expression occurs in an initializer list and is subject to an - // explicit cast then it will have at least two parents -- the initializer - // list, and the implicit cast. (This is probably due to implicit casts being - // treated as invisible nodes in the AST.) + // The expression that occurs in an initializer list and is then subject to an + // explicit cast will have at least two parents: the initializer list and the + // implicit cast. (This is probably due to implicit casts being treated as + // invisible nodes in the AST.) if (ast_context.getLangOpts().CPlusPlus && parents.size() >= 2 && parents[0].get() != nullptr && parents[1].get() != nullptr) { diff --git a/test/single_file/initializer_list_narrower_nested.cc b/test/single_file/initializer_list_narrower_nested.cc index 45359560..ddfe457d 100644 --- a/test/single_file/initializer_list_narrower_nested.cc +++ b/test/single_file/initializer_list_narrower_nested.cc @@ -5,4 +5,4 @@ struct foo { void baz() { foo bar[] = {{1, 2}}; -} \ No newline at end of file +} diff --git a/test/single_file/initializer_list_narrower_nested.cc.expected b/test/single_file/initializer_list_narrower_nested.cc.expected index b2f8b1e5..66822c30 100644 --- a/test/single_file/initializer_list_narrower_nested.cc.expected +++ b/test/single_file/initializer_list_narrower_nested.cc.expected @@ -67,4 +67,4 @@ struct foo { void baz() { foo bar[] = {{static_cast(__dredd_replace_expr_int_one(1, 0)), static_cast(__dredd_replace_expr_int_constant(2, 3))}}; -} \ No newline at end of file +} diff --git a/test/single_file/initializer_list_narrower_nested.cc.noopt.expected b/test/single_file/initializer_list_narrower_nested.cc.noopt.expected index b7350328..9b16f481 100644 --- a/test/single_file/initializer_list_narrower_nested.cc.noopt.expected +++ b/test/single_file/initializer_list_narrower_nested.cc.noopt.expected @@ -60,4 +60,4 @@ struct foo { void baz() { foo bar[] = {{static_cast(__dredd_replace_expr_int(1, 0)), static_cast(__dredd_replace_expr_int(2, 6))}}; -} \ No newline at end of file +}