We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 5905b86 commit 90eb182Copy full SHA for 90eb182
1 file changed
cpp2rust/converter/converter.cpp
@@ -383,9 +383,15 @@ bool Converter::ConvertVarDeclSkipInit(clang::VarDecl *decl) {
383
return false;
384
}
385
StrCat(AccessSpecifierAsString(decl->getAccess()), keyword::kStatic);
386
+ if (!qual_type.isConstQualified()) {
387
+ StrCat(keyword_mut_);
388
+ }
389
ENSURE(decl_ids_.insert(GetID(decl)).second);
390
} else if (decl->isStaticLocal()) {
391
StrCat(keyword::kStatic);
392
393
394
395
} else if (decl->isLocalVarDecl()) {
396
StrCat(keyword::kLet);
397
0 commit comments