This is the mail archive of the gdb-patches@sourceware.org mailing list for the GDB project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: [PATCH v2 05/11] [PR gdb/14441] gdb: demangle: implement demangling for rvalue reference typenames


All nits here, too.

On 01/19/2016 10:53 AM, Artemiy Volkov wrote:
> 2016-01-19  Artemiy Volkov  <artemiyv@acm.org>
> 
>         * gdb/cp-name-parser.y: Handle the '&&' token in typename.

We normally put a production name in place of where one would normally
use a function name. In this case, "(ptr_operator)".

> @@ -827,7 +828,10 @@ typy_lookup_type (struct demangle_component *demangled,
>  	  switch (demangled_type)
>  	    {
>  	    case DEMANGLE_COMPONENT_REFERENCE:
> -             rtype = lookup_lvalue_reference_type (type);
> +              rtype = lookup_lvalue_reference_type (type);
> +	      break;
> +	    case DEMANGLE_COMPONENT_RVALUE_REFERENCE:
> +              rtype = lookup_rvalue_reference_type (type);
>  	      break;
>  	    case DEMANGLE_COMPONENT_POINTER:
>  	      rtype = lookup_pointer_type (type);

Indentation?

Keith


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]