[cfe-commits] r39531 - /cfe/cfe/trunk/AST/StmtPrinter.cpp

clattner at cs.uiuc.edu clattner at cs.uiuc.edu
Wed Jul 11 09:45:20 PDT 2007


Author: clattner
Date: Wed Jul 11 11:45:20 2007
New Revision: 39531

URL: http://llvm.org/viewvc/llvm-project?rev=39531&view=rev
Log:
pretty print exprs in stmt contexts with a trailing semicolon.

Modified:
    cfe/cfe/trunk/AST/StmtPrinter.cpp

Modified: cfe/cfe/trunk/AST/StmtPrinter.cpp
URL: http://llvm.org/viewvc/llvm-project/cfe/cfe/trunk/AST/StmtPrinter.cpp?rev=39531&r1=39530&r2=39531&view=diff

==============================================================================
--- cfe/cfe/trunk/AST/StmtPrinter.cpp (original)
+++ cfe/cfe/trunk/AST/StmtPrinter.cpp Wed Jul 11 11:45:20 2007
@@ -55,7 +55,7 @@
         // If this is an expr used in a stmt context, indent and newline it.
         Indent();
         S->visit(*this);
-        OS << "\n";
+        OS << ";\n";
       } else if (S) {
         S->visit(*this);
       } else {





More information about the cfe-commits mailing list