Skip to content

Commit 1fa7b9a

Browse files
authored
fix: apply clang-format to converter_refcount.cpp
1 parent 4786462 commit 1fa7b9a

1 file changed

Lines changed: 2 additions & 3 deletions

File tree

‎cpp2rust/converter/models/converter_refcount.cpp‎

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1326,9 +1326,8 @@ bool ConverterRefCount::VisitExplicitCastExpr(clang::ExplicitCastExpr *expr) {
13261326
// Variable references to fn-ptrs still need .clone() because FnPtr is
13271327
// non-Copy and (*var.borrow()) would otherwise attempt a move.
13281328
auto *inner = expr->getSubExpr()->IgnoreParenImpCasts();
1329-
bool is_fn_ptr_var_ref =
1330-
clang::isa<clang::DeclRefExpr>(inner) &&
1331-
inner->getType()->isFunctionPointerType();
1329+
bool is_fn_ptr_var_ref = clang::isa<clang::DeclRefExpr>(inner) &&
1330+
inner->getType()->isFunctionPointerType();
13321331
if (!TypeIsCopyable(expr->getSubExpr()->getType()) &&
13331332
(!expr->getSubExpr()->getType()->isFunctionPointerType() ||
13341333
is_fn_ptr_var_ref)) {

0 commit comments

Comments
 (0)