[LLVMdev] Getting strcut member attributes

Duncan Sands baldrick at free.fr
Wed Jul 10 09:41:55 PDT 2013


Hi ragha, as this is a clang question I suggest you ask on the clang mailing
list.

Best wishes, Duncan.

On 10/07/13 16:50, Raghavendra K wrote:
>
> Hi,
>
> I need a help,
>
> #define OPT
> #define MAN
>
> struct A
> {
>     int i;
>     char* c;
>   };
>
>
> struct B
> {
>    OPT A a;
>    MAN int i;
> };
>
> After parsing the above .h file,   how to get the attributes of B members specifically
> for member A which is prefixed with OPT...
>
> So far am able to get type of a as A but unable to OPT...as it might be preprocessed and as it is empty
> it may discarded or...
>
>
>
> regards
> ragha
> _______________________________________________
> LLVM Developers mailing list
> LLVMdev at cs.uiuc.edu         http://llvm.cs.uiuc.edu
> http://lists.cs.uiuc.edu/mailman/listinfo/llvmdev
>




More information about the llvm-dev mailing list