[cfe-dev] VarDecl hierarchy (Re: Objective-C tidy up)

David Chisnall csdavec at swansea.ac.uk
Tue Jun 10 03:11:04 PDT 2008

On 9 Jun 2008, at 23:24, Steve Naroff wrote:

> On Jun 9, 2008, at 3:06 PM, David Chisnall wrote:
>> This doesn't appear to be set, but possibly it will be in the
>> future.  Register doesn't really make sense for an implicit
>> parameter, since the calling convention for functions with implicit
>> parameters is only relevant to code generation.
> There are plenty of things you can "say" in C that don't make sense.
> That said, it is legal to declare say "void func(register int a)" (and
> therefore needs to be preserved in the AST).

This is true for explicit parameters, but not for implicit parameters,  
since they are (by definition) not declared in the code.

More information about the cfe-dev mailing list