Skip to content

Commit bb24854

Browse files
committed
format
1 parent a25eca5 commit bb24854

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

‎cpp2rust/converter/models/converter_refcount.cpp‎

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1254,7 +1254,8 @@ bool ConverterRefCount::VisitStringLiteral(clang::StringLiteral *expr) {
12541254
if (IsArrayInitContext()) {
12551255
// The array may have a different element type than the literal, e.g.,
12561256
// unsigned char s[] = "abc".
1257-
auto elem_ty = ctx_.getAsArrayType(curr_init_type_.back())->getElementType();
1257+
auto elem_ty =
1258+
ctx_.getAsArrayType(curr_init_type_.back())->getElementType();
12581259
std::string elem(Trim(ToStringBase(elem_ty.getUnqualifiedType())));
12591260
uint64_t pad = 1;
12601261
if (auto *arr_ty = ctx_.getAsConstantArrayType(curr_init_type_.back())) {

0 commit comments

Comments
 (0)