We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent d3e29bc commit fa868d1Copy full SHA for fa868d1
2 files changed
cpp2rust/converter/converter.cpp
@@ -2113,9 +2113,7 @@ bool Converter::VisitStmtExpr(clang::StmtExpr *expr) {
2113
return false;
2114
}
2115
2116
-void Converter::EmitStmtExprTail(clang::Expr *tail) {
2117
- Convert(tail);
2118
-}
+void Converter::EmitStmtExprTail(clang::Expr *tail) { Convert(tail); }
2119
2120
bool Converter::VisitConditionalOperator(clang::ConditionalOperator *expr) {
2121
StrCat(keyword::kIf);
tests/unit/stmt_expr.cpp
@@ -26,11 +26,11 @@ int main() {
26
assert(z == 10);
27
28
assert(({
29
- int inner = ({
30
- int a = 100;
31
- a;
32
- });
33
- inner;
34
- }) == 100);
+ int inner = ({
+ int a = 100;
+ a;
+ });
+ inner;
+ }) == 100);
35
return 0;
36
0 commit comments