mirror of
https://github.com/DMaroo/GhidRust.git
synced 2025-09-10 04:53:36 +02:00
Remove parens for if conditions
This commit is contained in:
@@ -278,7 +278,7 @@ public class CVisitor implements CParserVisitor {
|
|||||||
|
|
||||||
public Object visit(ASTSelectionStatement node, Object data) {
|
public Object visit(ASTSelectionStatement node, Object data) {
|
||||||
StringBuilder ret = new StringBuilder(
|
StringBuilder ret = new StringBuilder(
|
||||||
"if (" + node.jjtGetChild(0).jjtAccept(this, data) + ") {" + node.jjtGetChild(1).jjtAccept(this, data));
|
"if " + node.jjtGetChild(0).jjtAccept(this, data) + " {" + node.jjtGetChild(1).jjtAccept(this, data));
|
||||||
ret.append("}");
|
ret.append("}");
|
||||||
((CContext) data).statement_end_sc = false;
|
((CContext) data).statement_end_sc = false;
|
||||||
return ret;
|
return ret;
|
||||||
|
Reference in New Issue
Block a user