We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent e84db5a commit 0584d10Copy full SHA for 0584d10
1 file changed
cpp2rust/converter/converter.cpp
@@ -2320,21 +2320,11 @@ bool Converter::VisitParenExpr(clang::ParenExpr *expr) {
2320
}
2321
2322
2323
- // Add cast to avoid ambigous integers. Don't add cast if sub expression is a
2324
- // pointer dereference because we might want to mutate the dereferenced value.
2325
- bool should_add_integral_cast =
2326
- expr->getType()->isIntegralOrEnumerationType() && !isAddrOf() &&
2327
- !isVoid() && !clang::isa<clang::UnaryOperator>(expr->getSubExpr());
2328
- PushParen outer(*this, should_add_integral_cast);
2329
-
2330
{
2331
PushParen inner(*this);
2332
Convert(expr->getSubExpr());
2333
2334
2335
- if (should_add_integral_cast) {
2336
- ConvertCast(expr->getType());
2337
- }
2338
return false;
2339
2340
0 commit comments