[cfe-dev] C++ typedef merging

Cédric Venet cedric.venet at laposte.net
Sun Dec 16 06:36:10 PST 2007


> -----Message d'origine-----
> De : Chris Lattner [mailto:clattner at apple.com]
> which seems a bit simpler.  Also, can you come up with an example
> which would hit the TagDecl case here yet?

Sorry for the wait.

Here is a slightly modified patch following your indications.

We can't it the TagDecl because:

The function is called in Sema::ActOnDeclarator On line 726 of semadecl.cpp
only if a previous decl was found in the ordinary namespace (ScopedDecl
*PrevDecl = LookupScopedDecl(II, Decl::IDNS_Ordinary,...). However, the type
wich would cause to hit the tagdecl live in the Tag namespace IDNS_Tag. So
until we implement the basic C++ name lookup, I don't think we can hit the
tagdecl case.


-------------- next part --------------
A non-text attachment was scrubbed...
Name: CppMergedTypedef.patch
Type: application/octet-stream
Size: 2062 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/cfe-dev/attachments/20071216/419ca9af/attachment.obj>

More information about the cfe-dev mailing list