[cfe-dev] Clang API and __builtin_va_list definition

Kamaljit Lall klall at factset.com
Fri Sep 21 14:37:31 PDT 2012

I am using the Clang c++ API. I have a blocking issue because the builtin __builtin_va_list clang isn't defined.

Here is the error:

..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;

>From what I've read, this builtin is target dependent.

This builtin is not defined in Builtins.def or BuiltinsX86.def or anywhere else I can find in the clang source code.

I am on a Redhat Linux box.

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.

All the other builtins seem to be installed and working.

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/cfe-dev/attachments/20120921/eef532f8/attachment.html>

More information about the cfe-dev mailing list