Skip to content

Commit 0e8a426

Browse files
authored
Apply clang-format to converter.cpp
1 parent c61fdd4 commit 0e8a426

1 file changed

Lines changed: 5 additions & 5 deletions

File tree

cpp2rust/converter/converter.cpp

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -2550,13 +2550,13 @@ bool Converter::VisitDeclRefExpr(clang::DeclRefExpr *expr) {
25502550

25512551
if (!decl->getType()->getAs<clang::ReferenceType>() && isAddrOf()) {
25522552
if (IsGlobalVar(expr)) {
2553-
StrCat("&raw", decl->getType().isConstQualified() ? keyword::kConst
2554-
: keyword_mut_,
2553+
StrCat("&raw",
2554+
decl->getType().isConstQualified() ? keyword::kConst
2555+
: keyword_mut_,
25552556
str);
25562557
} else {
2557-
StrCat(token::kRef, decl->getType().isConstQualified() ? ""
2558-
: keyword_mut_,
2559-
str);
2558+
StrCat(token::kRef,
2559+
decl->getType().isConstQualified() ? "" : keyword_mut_, str);
25602560
}
25612561
return false;
25622562
}

0 commit comments

Comments
 (0)