Skip to content

Commit 094127b

Browse files
committed
Add back parens to make the diff smaller
1 parent b65dfbb commit 094127b

2 files changed

Lines changed: 2 additions & 0 deletions

File tree

cpp2rust/converter/converter.cpp

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2067,6 +2067,7 @@ void Converter::ConvertBinaryOperator(clang::BinaryOperator *expr) {
20672067
}
20682068

20692069
void Converter::ConvertGenericBinaryOperator(clang::BinaryOperator *expr) {
2070+
PushParen outer(*this);
20702071
{
20712072
PushParen lhs_paren(*this);
20722073
Convert(expr->getLHS());

cpp2rust/converter/models/converter_refcount.cpp

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1840,6 +1840,7 @@ void ConverterRefCount::ConvertGenericBinaryOperator(
18401840
return;
18411841
}
18421842

1843+
PushParen outer(*this);
18431844
Convert(lhs);
18441845
StrCat(opcode);
18451846
Convert(rhs);

0 commit comments

Comments
 (0)