We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent c61fdd4 commit 0e8a426Copy full SHA for 0e8a426
1 file changed
cpp2rust/converter/converter.cpp
@@ -2550,13 +2550,13 @@ bool Converter::VisitDeclRefExpr(clang::DeclRefExpr *expr) {
2550
2551
if (!decl->getType()->getAs<clang::ReferenceType>() && isAddrOf()) {
2552
if (IsGlobalVar(expr)) {
2553
- StrCat("&raw", decl->getType().isConstQualified() ? keyword::kConst
2554
- : keyword_mut_,
+ StrCat("&raw",
+ decl->getType().isConstQualified() ? keyword::kConst
2555
+ : keyword_mut_,
2556
str);
2557
} else {
- StrCat(token::kRef, decl->getType().isConstQualified() ? ""
2558
2559
- str);
+ StrCat(token::kRef,
+ decl->getType().isConstQualified() ? "" : keyword_mut_, str);
2560
}
2561
return false;
2562
0 commit comments