<div dir="ltr">I suspect this is not currently visible to any in-tree code. Perhaps we could teach -ast-dump to dump this flag, and test it that way.<br><div class="gmail_extra"><br><div class="gmail_quote">On Wed, Nov 20, 2013 at 11:42 AM, Rafael Espíndola <span dir="ltr"><<a href="mailto:rafael.espindola@gmail.com" target="_blank">rafael.espindola@gmail.com</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">testcase?<br>
<div class="HOEnZb"><div class="h5"><br>
On 20 November 2013 10:41, Enea Zaffanella <<a href="mailto:zaffanella@cs.unipr.it">zaffanella@cs.unipr.it</a>> wrote:<br>
> Author: enea<br>
> Date: Wed Nov 20 09:41:05 2013<br>
> New Revision: 195255<br>
><br>
> URL: <a href="http://llvm.org/viewvc/llvm-project?rev=195255&view=rev" target="_blank">http://llvm.org/viewvc/llvm-project?rev=195255&view=rev</a><br>
> Log:<br>
> When wrapping lazily generated builtins in an extern "C" context,<br>
> flag the LinkageSpecDecl as being implicitly generated too.<br>
><br>
> Modified:<br>
>     cfe/trunk/lib/Sema/SemaDecl.cpp<br>
><br>
> Modified: cfe/trunk/lib/Sema/SemaDecl.cpp<br>
> URL: <a href="http://llvm.org/viewvc/llvm-project/cfe/trunk/lib/Sema/SemaDecl.cpp?rev=195255&r1=195254&r2=195255&view=diff" target="_blank">http://llvm.org/viewvc/llvm-project/cfe/trunk/lib/Sema/SemaDecl.cpp?rev=195255&r1=195254&r2=195255&view=diff</a><br>

> ==============================================================================<br>
> --- cfe/trunk/lib/Sema/SemaDecl.cpp (original)<br>
> +++ cfe/trunk/lib/Sema/SemaDecl.cpp Wed Nov 20 09:41:05 2013<br>
> @@ -1540,6 +1540,7 @@ NamedDecl *Sema::LazilyCreateBuiltin(Ide<br>
>      LinkageSpecDecl *CLinkageDecl =<br>
>          LinkageSpecDecl::Create(Context, Parent, Loc, Loc,<br>
>                                  LinkageSpecDecl::lang_c, false);<br>
> +    CLinkageDecl->setImplicit();<br>
>      Parent->addDecl(CLinkageDecl);<br>
>      Parent = CLinkageDecl;<br>
>    }<br>
><br>
><br>
> _______________________________________________<br>
> cfe-commits mailing list<br>
> <a href="mailto:cfe-commits@cs.uiuc.edu">cfe-commits@cs.uiuc.edu</a><br>
> <a href="http://lists.cs.uiuc.edu/mailman/listinfo/cfe-commits" target="_blank">http://lists.cs.uiuc.edu/mailman/listinfo/cfe-commits</a><br>
_______________________________________________<br>
cfe-commits mailing list<br>
<a href="mailto:cfe-commits@cs.uiuc.edu">cfe-commits@cs.uiuc.edu</a><br>
<a href="http://lists.cs.uiuc.edu/mailman/listinfo/cfe-commits" target="_blank">http://lists.cs.uiuc.edu/mailman/listinfo/cfe-commits</a><br>
</div></div></blockquote></div><br></div></div>