[cfe-dev] Declaration name qualifiers.

Enea Zaffanella zaffanella at cs.unipr.it
Fri Mar 12 01:06:39 PST 2010


Enea Zaffanella wrote:
> Hello.
> 
> In the C++ AST, name qualifications are stored using NestedNameSpecifier 
> objects. These are currently used in some expression nodes (e.g., 
> DeclRefExpr and MemberExpr), some declaration nodes (e.g., 
> UsingDirectiveDecl and NamespaceAliasDecl) and some type nodes (e.g., 
> QualifiedNameType and TypenameType).
> 
> However, there are other AST nodes that can be qualified in the program 
> sources but are not currently provided by a NestedNameSpecifier.
> We would like to modify these AST nodes so that they can provide the 
> required info to applications working at the program source level. 

Please find attached a patch implementing the proposal above.
The patch is based on revision 98253 and passes all tests.

Cheers,
Enea Zaffanella.

-------------- next part --------------
A non-text attachment was scrubbed...
Name: Qualifier.patch
Type: text/x-patch
Size: 83892 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/cfe-dev/attachments/20100312/69ebc804/attachment.bin>


More information about the cfe-dev mailing list