зеркало из https://github.com/microsoft/clang-1.git
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
This commit is contained in:
Родитель
aeddbf689e
Коммит
60266e8a9a
|
@ -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;
|
||||
}
|
||||
}
|
||||
|
|
Загрузка…
Ссылка в новой задаче