[cfe-commits] r39537 - /cfe/cfe/trunk/AST/StmtPrinter.cpp
clattner at cs.uiuc.edu
clattner at cs.uiuc.edu
Wed Jul 11 09:45:23 PDT 2007
Author: clattner
Date: Wed Jul 11 11:45:23 2007
New Revision: 39537
URL: http://llvm.org/viewvc/llvm-project?rev=39537&view=rev
Log:
add some ;'s
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=39537&r1=39536&r2=39537&view=diff
==============================================================================
--- cfe/cfe/trunk/AST/StmtPrinter.cpp (original)
+++ cfe/cfe/trunk/AST/StmtPrinter.cpp Wed Jul 11 11:45:23 2007
@@ -207,7 +207,7 @@
PrintStmt(Node->getBody());
Indent() << "while (";
PrintExpr(Node->getCond());
- OS << ")\n";
+ OS << ");\n";
}
void StmtPrinter::VisitForStmt(ForStmt *Node) {
@@ -231,15 +231,15 @@
void StmtPrinter::VisitIndirectGotoStmt(IndirectGotoStmt *Node) {
Indent() << "goto *";
PrintExpr(Node->getTarget());
- OS << "\n";
+ OS << ";\n";
}
void StmtPrinter::VisitContinueStmt(ContinueStmt *Node) {
- Indent() << "continue\n";
+ Indent() << "continue;\n";
}
void StmtPrinter::VisitBreakStmt(BreakStmt *Node) {
- Indent() << "break\n";
+ Indent() << "break;\n";
}
@@ -249,7 +249,7 @@
OS << " ";
PrintExpr(Node->getRetValue());
}
- OS << "\n";
+ OS << ";\n";
}
//===----------------------------------------------------------------------===//
More information about the cfe-commits
mailing list