We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 243b4a5 commit 906ea4eCopy full SHA for 906ea4e
1 file changed
cpp2rust/converter/converter.cpp
@@ -643,7 +643,8 @@ void Converter::EmitRustStructOrUnion(clang::RecordDecl *decl) {
643
auto access = clang::dyn_cast<clang::CXXRecordDecl>(decl)
644
? AccessSpecifierAsString(decl->getAccess())
645
: keyword::kPub;
646
- StrCat(access, decl->isUnion() ? keyword::kUnion : keyword::kStruct, GetRecordName(decl));
+ StrCat(access, decl->isUnion() ? keyword::kUnion : keyword::kStruct,
647
+ GetRecordName(decl));
648
{
649
PushBrace brace(*this);
650
for (auto *field : decl->fields()) {
0 commit comments