diff options
| author | Douglas Gregor <dgregor@apple.com> | 2009-01-08 22:45:41 +0000 |
|---|---|---|
| committer | Douglas Gregor <dgregor@apple.com> | 2009-01-08 22:45:41 +0000 |
| commit | e4b414c781bdbc92ca2480c62d3a2dc087c07a80 (patch) | |
| tree | ef7a2b05def42d595b0624a524d6e7d7068ff0a2 /clang/lib/AST/StmtPrinter.cpp | |
| parent | f87dc9264adc6f4afcdf2a88f02e35bb9af8cf0a (diff) | |
| download | bcm5719-llvm-e4b414c781bdbc92ca2480c62d3a2dc087c07a80.tar.gz bcm5719-llvm-e4b414c781bdbc92ca2480c62d3a2dc087c07a80.zip | |
Revert my previous, failed attempt to pretty-print anonymous struct/union accesses well. Added a FIXME so we know to revisit this later
llvm-svn: 61951
Diffstat (limited to 'clang/lib/AST/StmtPrinter.cpp')
| -rw-r--r-- | clang/lib/AST/StmtPrinter.cpp | 9 |
1 files changed, 5 insertions, 4 deletions
diff --git a/clang/lib/AST/StmtPrinter.cpp b/clang/lib/AST/StmtPrinter.cpp index 7456e8cca9e..14d30d86739 100644 --- a/clang/lib/AST/StmtPrinter.cpp +++ b/clang/lib/AST/StmtPrinter.cpp @@ -757,10 +757,11 @@ void StmtPrinter::VisitCallExpr(CallExpr *Call) { OS << ")"; } void StmtPrinter::VisitMemberExpr(MemberExpr *Node) { - if (!Node->getBase()->isImplicit()) { - PrintExpr(Node->getBase()); - OS << (Node->isArrow() ? "->" : "."); - } + // FIXME: Suppress printing implicit bases (like "this") + PrintExpr(Node->getBase()); + OS << (Node->isArrow() ? "->" : "."); + // FIXME: Suppress printing references to unnamed objects + // representing anonymous unions/structs OS << Node->getMemberDecl()->getNameAsString(); } void StmtPrinter::VisitExtVectorElementExpr(ExtVectorElementExpr *Node) { |

