[cfe-dev] Attr::isInherited semantics
Kim Gräsman
kim.grasman at gmail.com
Thu Jul 18 14:26:10 PDT 2013
Thanks, Aaron! "Inheritance" seemed like a funny choice of words, so I
wanted to make sure.
Suggestive: I wish I understood this well enough to add Doxygen
comments on Attr :-).
- Kim
On Thu, Jul 18, 2013 at 11:16 PM, Aaron Ballman <aaron at aaronballman.com> wrote:
> Yes, you should be able to safely use that. AFAIK, the semantics for
> it are exactly as you describe -- whether the attribute was written
> for the declaration, or inherited. All of the attribute inheritance
> happens from mergeDeclAttribute (or something called from there).
>
> ~Aaron
>
> On Thu, Jul 18, 2013 at 5:07 PM, Kim Gräsman <kim.grasman at gmail.com> wrote:
>> Hi all,
>>
>> Can I safely use Attr::isInherited to check whether an attribute is
>> explicitly written on a Decl or whether it has been merged from
>> redeclarations?
>>
>> It appears to work, but I can't really tell what the intended
>> semantics for isInherited are.
>>
>> Thanks,
>> - Kim
>> _______________________________________________
>> cfe-dev mailing list
>> cfe-dev at cs.uiuc.edu
>> http://lists.cs.uiuc.edu/mailman/listinfo/cfe-dev
More information about the cfe-dev
mailing list