[cfe-dev] Source information for types
Eli Friedman
eli.friedman at gmail.com
Wed Jul 8 16:49:53 PDT 2009
On Wed, Jul 8, 2009 at 4:34 PM, Argyrios Kyrtzidis<kyrtzidis at apple.com> wrote:
> Ideally all the type source info for the above type would be readily
> available from the AST; recomputing all the information from the tokens
> isn't practical, Sema already did the hard work, we just need to store it.
Hmm... are you planning to make the SourceType recursive?
>> Also, your suggestion doesn't really address where exactly you plan to
>> store your flag; there aren't any spare bits in QualType.
>
> The flag is just a boolean to pass to Sema to tell it whether to create
> SourceTypes or not. If the flag is false, Sema will discard the source info
> and just pass QualTypes to the Decls, as it currently does.
Oh, I see; it would vary with a flag on the ASTContext rather than the
individual Decls.
-Eli
More information about the cfe-dev
mailing list