On Wed, Nov 20, 2013 at 12:29 PM, Enea Zaffanella <[email protected]>wrote:
>
> On 11/20/2013 08:46 PM, Richard Smith wrote:
>
>> 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.
>>
>
> It seems that -ast-print is able to show the difference ... but I can not
> tell if this is only happening by chance (the status of the pretty printer
> is unclear to me):
>
> $ cat a.cc
> float test() {
> return __builtin_asinf(1.0);
> }
>
> Before the patch we were getting:
> $ clang++ -cc1 -ast-print a.cc
> float test() {
> return __builtin_asinf(1.);
> }
>
>
> extern "C" extern float __builtin_asinf(float) __attribute__((nothrow))
> __attribute__((const))
> $
>
> After the patch, only function test() is printed out.
That makes sense; the ast printer tries to avoid printing implicit
declarations. Please add a test for that! =)
_______________________________________________
cfe-commits mailing list
[email protected]
http://lists.cs.uiuc.edu/mailman/listinfo/cfe-commits