From: Ted Kremenek Date: Fri, 31 Aug 2007 22:47:06 +0000 (+0000) Subject: Fixed missing '(' and ')' characters in (CFG) pretty-printing of X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=60266e8a9a4cd941af5e0006a18377dc03f0421b;p=clang Fixed missing '(' and ')' characters in (CFG) pretty-printing of statement expressions. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@41659 91177308-0d34-0410-b5e6-96231b3b80d8 --- diff --git a/AST/CFG.cpp b/AST/CFG.cpp index 4828db1a9b..463b44f387 100644 --- a/AST/CFG.cpp +++ b/AST/CFG.cpp @@ -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; } }