Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
Re: [cdt-dev] representing 'decltype(e)::name' in the AST without breaking API




On Sun, Jul 28, 2013 at 4:07 PM, Nathan Ridge <zeratul976@xxxxxxxxxxx> wrote:
> 3. Deprecate ICPPASTQualifiedName.getNames() method. This method should
> continue to work for names that are composed of IASTName's.
> For 'decltype(e)::name' it may return an array of two elements where
> the first element is a placeholder that formally implements IASTName
> interface but throws UnsupportedOperationException in most methods
> except toCharArray() and toString().

Is this really worth the trouble? How about just throwing
UnsupportedOperationException in getNames() for names that contain a
decltype-specifier?

Agree, this is probably sufficient. 

Regards,
Nate

-sergey 
_______________________________________________
cdt-dev mailing list
cdt-dev@xxxxxxxxxxx
https://dev.eclipse.org/mailman/listinfo/cdt-dev


Back to the top