[cfe-dev] BPF: adding new clang extension bpf_dominating_decl attribute

Aaron Ballman via cfe-dev cfe-dev at lists.llvm.org
Thu Jan 6 04:48:00 PST 2022


On Thu, Jan 6, 2022 at 6:45 AM Nathan Sidwell <nathan at acm.org> wrote:
>
> On 1/3/22 15:51, Aaron Ballman wrote:
>
> > Which brings up an interesting question -- how does this attribute
> > interact with debug information?
>
> The attribute may only be applied to the first definition of an
> elaborated type (or first declaration of a typedef).  Thus debug info
> and/or any completion semantics are from that instance.  Subsequent
> redefinitions (or redeclarations) are ignored.
>
> does that answer your question?

Yup, thank you!

~Aaron

>
> nathan
>
> --
> Nathan Sidwell


More information about the cfe-dev mailing list