[cfe-dev] Attr::isInherited semantics

Aaron Ballman aaron at aaronballman.com
Thu Jul 18 14:16:51 PDT 2013


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