[cfe-commits] r72555 - in /cfe/trunk: include/clang/Basic/DiagnosticSemaKinds.td include/clang/Parse/Action.h include/clang/Parse/DeclSpec.h lib/Frontend/PrintParserCallbacks.cpp lib/Parse/DeclSpec.cpp lib/Parse/ParseDecl.cpp lib/Parse/ParseDeclC

Eli Friedman eli.friedman at gmail.com
Thu May 28 18:51:14 PDT 2009


On Thu, May 28, 2009 at 6:35 PM, Douglas Gregor<dgregor at apple.com> wrote:
>
> On May 28, 2009, at 5:33 PM, Eli Friedman <eli.friedman at gmail.com> wrote:
>
>> On Thu, May 28, 2009 at 4:31 PM, Douglas Gregor<dgregor at apple.com> wrote:
>>>
>>>  2) We can extend DeclGroups to contain information about any tags
>>>  that are declared/defined within the declaration specifiers of a
>>>  variable, e.g.,
>>>
>>>   struct Point { int x, y, z; } p;
>>>
>>>  This will help improve AST printing and template instantiation,
>>>  among other things.
>>
>> Does the attached look like a reasonable step in that direction?
>
> Yes, although for template instantiation I think we might want to pass the
> owned Decl to FinalizeDeclGroup rather than the DeclSpec.

Okay, committed; it should be easy to split off the top bit of the
function once templates start using it.

-Eli




More information about the cfe-commits mailing list