]> granicus.if.org Git - clang/commitdiff
Fixed missing '(' and ')' characters in (CFG) pretty-printing of
authorTed Kremenek <kremenek@apple.com>
Fri, 31 Aug 2007 22:47:06 +0000 (22:47 +0000)
committerTed Kremenek <kremenek@apple.com>
Fri, 31 Aug 2007 22:47:06 +0000 (22:47 +0000)
statement expressions.

git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@41659 91177308-0d34-0410-b5e6-96231b3b80d8

AST/CFG.cpp

index 4828db1a9b8aa34a507e38a1f018fe302a768cac..463b44f387a36431d92e56dada73d4eaf1374170 100644 (file)
@@ -1060,9 +1060,9 @@ void print_stmt(std::ostream&OS, StmtPrinterHelper* Helper, Stmt* S) {
       CompoundStmt* Sub = SE->getSubStmt();
       
       if (Sub->child_begin() != Sub->child_end()) {
-        OS << "{ ... ; ";
+        OS << "({ ... ; ";
         Helper->handledStmt(*SE->getSubStmt()->child_rbegin(),OS);
-        OS << " }\n";
+        OS << " })\n";
         return;
       }
     }