[cfe-dev] merging of FunctionDecl's
Douglas Gregor
dgregor at apple.com
Tue Nov 3 17:48:00 PST 2009
On Oct 28, 2009, at 11:03 AM, John McCall wrote:
> Douglas Gregor wrote:
>> This is actually this issue. We should be mangling based on the
>> declaration we're given, not based on the canonical declaration
>> (which is the first declaration and, therefore, does not have the
>> attribute). Fixed here:
>>
>
> Is there any compelling reason not to push this attribute onto the
> canonical declaration? I'm not sure what exactly a canonical
> declaration is if it's not something you can always safely use
> without fearing loss of critical information.
The canonical declaration is, for function declarations, the first
declaration of the function. We don't want to push this attribute onto
the canonical declaration because that would change the first
declaration of the function, which may not have had that attribute.
- Doug
More information about the cfe-dev
mailing list