summaryrefslogtreecommitdiffstats
path: root/clang/lib/AST/StmtPrinter.cpp
diff options
context:
space:
mode:
authorSteve Naroff <snaroff@apple.com>2008-05-30 00:40:33 +0000
committerSteve Naroff <snaroff@apple.com>2008-05-30 00:40:33 +0000
commitec944030181144c49c6539a985f09e8bf137cb1d (patch)
tree710495562768cc1e61c985bdf1c972609e0597bf /clang/lib/AST/StmtPrinter.cpp
parentbe8f77859b4c4152ff766e5ddca942d594b3a9d2 (diff)
downloadbcm5719-llvm-ec944030181144c49c6539a985f09e8bf137cb1d.tar.gz
bcm5719-llvm-ec944030181144c49c6539a985f09e8bf137cb1d.zip
Add basic support for properties references (a missing feature).
While it is far from complete, it does fix the following <rdar://problem/5967199> clang on xcode: error: member reference is not to a structure or union llvm-svn: 51719
Diffstat (limited to 'clang/lib/AST/StmtPrinter.cpp')
-rw-r--r--clang/lib/AST/StmtPrinter.cpp8
1 files changed, 8 insertions, 0 deletions
diff --git a/clang/lib/AST/StmtPrinter.cpp b/clang/lib/AST/StmtPrinter.cpp
index b55869b0826..d52f48ed210 100644
--- a/clang/lib/AST/StmtPrinter.cpp
+++ b/clang/lib/AST/StmtPrinter.cpp
@@ -484,6 +484,14 @@ void StmtPrinter::VisitObjCIvarRefExpr(ObjCIvarRefExpr *Node) {
OS << Node->getDecl()->getName();
}
+void StmtPrinter::VisitObjCPropertyRefExpr(ObjCPropertyRefExpr *Node) {
+ if (Node->getBase()) {
+ PrintExpr(Node->getBase());
+ OS << ".";
+ }
+ // FIXME: OS << Node->getDecl()->getName();
+}
+
void StmtPrinter::VisitPreDefinedExpr(PreDefinedExpr *Node) {
switch (Node->getIdentType()) {
default:
OpenPOWER on IntegriCloud