Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
Re: [cdt-dev] CDT version of "decltype(expression)"

>     Is there a possibility fo query for the decltype of an expression,  
> which is selected. Something in the lines of "a[10].b;" where a is an  
> object of a struct which has one field called "b" of type float. 

You can use IASTNodeSelector to find the IASTExpression node enclosing the selection, and then call IASTExpression.getExpressionType() to get the type.

Hope that helps,
Nate
 		 	   		  

Back to the top