[cfe-dev] type attributes

Eli Friedman eli.friedman at gmail.com
Fri Jul 24 15:20:27 PDT 2009

On Fri, Jul 24, 2009 at 1:56 PM, Mike Stump<mrs at apple.com> wrote:
> I'm adding the noreturn type attribute.  We can do this in one of two
> ways, as a bit, or use the general mechanism used by Decls.  I kinda
> like the general method used by decls, but wanted to see what others
> thought?

Either way sounds okay; I think I prefer the general method as well.

> Don't worry, I wasn't going to pollute all types, I thought
> I'd put it into ExtQualType, seems like a reasonable place to put it.

Have you considered putting the noreturn type attribute on
FunctionType?  It's not a generic qualifier, but rather a property of
functions, so I can't see why you'd want it to apply to anything other
than a FunctionType, or maybe a BlockPointerType.


More information about the cfe-dev mailing list