[cfe-commits] r167739 - /cfe/trunk/lib/AST/StmtPrinter.cpp
David Blaikie
dblaikie at gmail.com
Mon Nov 12 11:32:32 PST 2012
Author: dblaikie
Date: Mon Nov 12 13:32:32 2012
New Revision: 167739
URL: http://llvm.org/viewvc/llvm-project?rev=167739&view=rev
Log:
80 cols & unnecessary braces from r167736.
Post-commit review feedback by Eli Friedman.
Modified:
cfe/trunk/lib/AST/StmtPrinter.cpp
Modified: cfe/trunk/lib/AST/StmtPrinter.cpp
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/lib/AST/StmtPrinter.cpp?rev=167739&r1=167738&r2=167739&view=diff
==============================================================================
--- cfe/trunk/lib/AST/StmtPrinter.cpp (original)
+++ cfe/trunk/lib/AST/StmtPrinter.cpp Mon Nov 12 13:32:32 2012
@@ -912,11 +912,11 @@
PrintExpr(Node->getBase());
MemberExpr *ParentMember = dyn_cast<MemberExpr>(Node->getBase());
- FieldDecl *ParentDecl = ParentMember ? dyn_cast<FieldDecl>(ParentMember->getMemberDecl()): NULL;
+ FieldDecl *ParentDecl = ParentMember
+ ? dyn_cast<FieldDecl>(ParentMember->getMemberDecl()) : NULL;
- if (!ParentDecl || !ParentDecl->isAnonymousStructOrUnion()) {
+ if (!ParentDecl || !ParentDecl->isAnonymousStructOrUnion())
OS << (Node->isArrow() ? "->" : ".");
- }
if (FieldDecl *FD = dyn_cast<FieldDecl>(Node->getMemberDecl()))
if (FD->isAnonymousStructOrUnion())
More information about the cfe-commits
mailing list