Re: [PATCH] C: fix logic within c_expr::get_location

2017-08-24 Thread Marek Polacek
On Wed, Aug 23, 2017 at 02:08:47PM -0400, David Malcolm wrote: > In r251239 I added a c_expr::get_location method for use by > c_parser_expr_list for building the vec for > an expression list, rather than using the location of the first token. > > When determining whether to use the location withi

[PATCH] C: fix logic within c_expr::get_location

2017-08-23 Thread David Malcolm
In r251239 I added a c_expr::get_location method for use by c_parser_expr_list for building the vec for an expression list, rather than using the location of the first token. When determining whether to use the location within the tree node, or fall back to the range in the c_expr, I used EXPR_CAN