[cfe-dev] Clang API and __builtin_va_list definition
klall at factset.com
Fri Sep 21 14:49:25 PDT 2012
Thanks for your reply.
Do you know where the __builtin_va_list is generated by clang?
It is a target dependent declaration I believe. Currently I have my target options set as follows:
targetOptions.Triple = "x86_64-unknown-linux-gnu";
targetOptions.CPU = "x86-64";
Which is consistent with the options I see when compiling directly with clang++:
clang++ -v test.cpp (this works)
From: Eli Friedman [mailto:eli.friedman at gmail.com]
Sent: Friday, September 21, 2012 5:44 PM
To: Kamaljit Lall
Cc: cfe-dev at cs.uiuc.edu
Subject: Re: [cfe-dev] Clang API and __builtin_va_list definition
On Fri, Sep 21, 2012 at 2:37 PM, Kamaljit Lall <klall at factset.com> wrote:
> I am using the Clang c++ API. I have a blocking issue because the
> builtin __builtin_va_list clang isn't defined.
> ..lib/clang/3.2/include/stdarg.h:30:9: error: unknown type name
> '__builtin_va_list'; did you mean '__builtin_va_list'? typedef
> __builtin_va_list va_list;
> How can I get this builtin to be visible? Do I have to supply it myself?
> I missing something in my Clang C++ API usage it seems to me.
This. It's not obvious exactly what you messed up, though.
More information about the cfe-dev