<div dir="ltr"><div>Hi, </div><div><br></div><div>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?</div><div><br></div><div>Thank you.</div><div><br></div><div><br></div><div>======================================</div><div><br></div><div><br></div>







<p class=""><span class="">bash-3.2$ cat t.c</span></p>
<p class=""><span class="">int a, b = 1;</span></p>
<p class=""><span class=""></span><br></p>
<p class=""><span class="">bash-3.2$ clang -Xclang -ast-dump -fsyntax-only t.c</span></p>
<p class=""><span class=""><b>TranslationUnitDecl</b></span><span class=""> 0x10302acc0</span><span class=""> <</span><span class=""><invalid sloc></span><span class="">> </span><span class=""><invalid sloc></span></p>
<p class=""><span class="">|-</span><span class=""><b>TypedefDecl</b></span><span class=""> 0x10302b1c0</span><span class=""> <</span><span class=""><invalid sloc></span><span class="">> </span><span class=""><invalid sloc></span><span class=""> implicit</span><span class=""><b> __int128_t</b></span><span class=""> </span><span class="">'__int128'</span></p>
<p class=""><span class="">|-</span><span class=""><b>TypedefDecl</b></span><span class=""> 0x10302b220</span><span class=""> <</span><span class=""><invalid sloc></span><span class="">> </span><span class=""><invalid sloc></span><span class=""> implicit</span><span class=""><b> __uint128_t</b></span><span class=""> </span><span class="">'unsigned __int128'</span></p>
<p class=""><span class="">|-</span><span class=""><b>TypedefDecl</b></span><span class=""> 0x10302b5b0</span><span class=""> <</span><span class=""><invalid sloc></span><span class="">> </span><span class=""><invalid sloc></span><span class=""> implicit</span><span class=""><b> __builtin_va_list</b></span><span class=""> </span><span class="">'__va_list_tag [1]'</span></p>
<p class=""><span class="">|-</span><span class=""><b>VarDecl</b></span><span class=""> 0x10302b610</span><span class=""> <</span><span class="">t.c:1:1</span><span class="">, </span><span class="">col:5</span><span class="">> </span><span class="">col:5</span><span class=""><b> a</b></span><span class=""> </span><span class="">'int'</span></p>
<p class=""><span class="">`-</span><span class=""><b>VarDecl</b></span><span class=""> 0x10302b680</span><span class=""> <</span><span class="">col:1</span><span class="">, </span><span class="">col:12</span><span class="">> </span><span class="">col:8</span><span class=""><b> b</b></span><span class=""> </span><span class="">'int'</span><span class=""> cinit</span></p>
<p class=""><span class="">  `-</span><span class=""><b>IntegerLiteral</b></span><span class=""> 0x10302b6e0</span><span class=""> <</span><span class="">col:12</span><span class="">> </span><span class="">'int'</span><span class=""><b> 1</b></span></p><p class=""><span class=""><b><br></b></span></p><div><br></div>-- <br><div class="gmail_signature">Best Regards.<br><br>Chengnian SUN.</div>
</div>