[cfe-dev] How to disable the generation of TypedefDecl for __builtin_va_list

Chengnian Sun via cfe-dev cfe-dev at lists.llvm.org
Mon Feb 22 09:15:06 PST 2016


Hi,

I found out that for the following code (only containing two variable
declarations), clang will generate three internal typedef declarations. Is
there any way to disable the generation of the three typedef?

Thank you.


======================================


bash-3.2$ cat t.c

int a, b = 1;


bash-3.2$ clang -Xclang -ast-dump -fsyntax-only t.c

*TranslationUnitDecl* 0x10302acc0 <<invalid sloc>> <invalid sloc>

|-*TypedefDecl* 0x10302b1c0 <<invalid sloc>> <invalid sloc> implicit*
__int128_t* '__int128'

|-*TypedefDecl* 0x10302b220 <<invalid sloc>> <invalid sloc> implicit*
__uint128_t* 'unsigned __int128'

|-*TypedefDecl* 0x10302b5b0 <<invalid sloc>> <invalid sloc> implicit*
__builtin_va_list* '__va_list_tag [1]'

|-*VarDecl* 0x10302b610 <t.c:1:1, col:5> col:5* a* 'int'

`-*VarDecl* 0x10302b680 <col:1, col:12> col:8* b* 'int' cinit

  `-*IntegerLiteral* 0x10302b6e0 <col:12> 'int'* 1*



-- 
Best Regards.

Chengnian SUN.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/cfe-dev/attachments/20160222/aec726df/attachment.html>


More information about the cfe-dev mailing list