Skip to content

Commit 8ebb1b7

Browse files
authored
todo
1 parent 29e8abe commit 8ebb1b7

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

‎cpp2rust/converter/models/converter_refcount.cpp‎

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1406,7 +1406,7 @@ bool ConverterRefCount::VisitUnaryExprOrTypeTraitExpr(
14061406
: expr->getArgumentExpr()->getType();
14071407
switch (expr->getKind()) {
14081408
case clang::UnaryExprOrTypeTrait::UETT_SizeOf:
1409-
// Once Values are dropped from fields, precomputation should be gone
1409+
// TODO: Once Values are dropped from fields, precomputation should be gone
14101410
if (RustSizeDivergesFromC(arg_type)) {
14111411
StrCat(std::format("{}usize", ctx_.getTypeSize(arg_type) / 8));
14121412
computed_expr_type_ = ComputedExprType::FreshValue;
@@ -1415,7 +1415,7 @@ bool ConverterRefCount::VisitUnaryExprOrTypeTraitExpr(
14151415
break;
14161416
case clang::UnaryExprOrTypeTrait::UETT_AlignOf:
14171417
case clang::UnaryExprOrTypeTrait::UETT_PreferredAlignOf:
1418-
// Once Values are dropped from fields, precomputation should be gone
1418+
// TODO: Once Values are dropped from fields, precomputation should be gone
14191419
if (RustSizeDivergesFromC(arg_type)) {
14201420
StrCat(std::format("{}usize", ctx_.getTypeAlign(arg_type) / 8));
14211421
computed_expr_type_ = ComputedExprType::FreshValue;

0 commit comments

Comments
 (0)