[cfe-dev] Howto get the dimension expression for a given ConstantArrayType

Friedman, Eli via cfe-dev cfe-dev at lists.llvm.org
Mon Aug 20 12:27:16 PDT 2018


On 8/17/2018 7:01 AM, Frank Redeker via cfe-dev wrote:
> Hello, List,
>
> is there an easy way to get the expression that is used to specify the
> dimension for a given ConstantArrayType.

That information isn't stored in the ConstantArrayType; you need the 
TypeSourceInfo for the type in question.

-Eli

-- 
Employee of Qualcomm Innovation Center, Inc.
Qualcomm Innovation Center, Inc. is a member of Code Aurora Forum, a Linux Foundation Collaborative Project




More information about the cfe-dev mailing list