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

> 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?

Regards,
Nate 		 	   		  

Back to the top