We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 778d72b commit a417fcfCopy full SHA for a417fcf
1 file changed
cpp2rust/converter/converter.cpp
@@ -1669,11 +1669,7 @@ bool Converter::VisitImplicitCastExpr(clang::ImplicitCastExpr *expr) {
1669
ConvertEqualsNullPtr(sub_expr);
1670
break;
1671
case clang::CastKind::CK_NullToPointer:
1672
- if (type->isFunctionPointerType()) {
1673
- StrCat("None");
1674
- } else {
1675
- StrCat(keyword_default_);
1676
- }
+ StrCat(keyword_default_);
1677
computed_expr_type_ = ComputedExprType::FreshPointer;
1678
1679
default:
0 commit comments