[cfe-dev] [PATCH]: Sema support for C++ classes

Argiris Kirtzidis akyrtzi at gmail.com
Wed Jun 25 09:49:24 PDT 2008


The attached patch adds the missing Sema support for parsing C++ classes.

About references to instance fields:

+      // FIXME: Use DeclRefExpr or a new Expr for a direct CXXField 
+      ExprResult ThisExpr = ActOnCXXThis(Loc);
+      return new MemberExpr(static_cast<Expr*>(ThisExpr.Val),
+                            true, FD, Loc, FD->getType());

I'll fix this once Sema support is in place.

-------------- next part --------------
A non-text attachment was scrubbed...
Name: cxx-sema-2.patch
Type: text/x-diff
Size: 28794 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/cfe-dev/attachments/20080625/208723c4/attachment.patch>

More information about the cfe-dev mailing list