[cfe-dev] Patch for C++ namespaces
Argiris Kirtzidis
akyrtzi at gmail.com
Tue Apr 15 11:04:18 PDT 2008
Hi,
The attached patch implements parsing of C++ namespaces:
-Added NamespaceDecl for the AST
-Added NamespaceScope flag in the Scope class
-Added checks for name clashes between namespaces and tag/normal
declarations.
Note that proper name lookup for namespaces is not implemented, (i.e) :
namespace A {
int x;
}
namespace A {
void f() { x=0; }
}
I'll add it in a separate patch.
-Argiris
-------------- next part --------------
A non-text attachment was scrubbed...
Name: cxx-namespaces.patch
Type: text/x-diff
Size: 25145 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/cfe-dev/attachments/20080415/f232a3a6/attachment.patch>
More information about the cfe-dev
mailing list