[cfe-commits] tgmath.h

Chris Lattner clattner at apple.com
Wed Feb 18 14:20:47 PST 2009


On Feb 18, 2009, at 2:08 PM, Douglas Gregor wrote:
> On Feb 18, 2009, at 10:29 AM, Howard Hinnant wrote:
>> On Feb 18, 2009, at 12:48 PM, Douglas Gregor wrote:
>>
>>>> Nice.  The '\' confused me at first, but seems harmless enough.
>>>
>>> I guess we could give the attribute a named macro, e.g.,
>>>
>>> static _Argument_type_is_not_arithmetic __tg_promote(...)
>>> __ATTRACT_BAD_TGMATH_ARG
>>>
>>> ?
>>
>> Or just remove the '\' ?  Not that I really care. :-)
>>
>> Curious:  Does it have a function?
>
> Just trying to avoid overlong lines; they wrap strangely in the error
> messages.

You are using line splicing in something that isn't line sensitive:

static _Argument_type_is_not_arithmetic __tg_promote(...) \
   __attribute__((__unavailable__,__overloadable__));

Can't the \ just be removed?

-Chris



More information about the cfe-commits mailing list