Skip to content

Commit 4dd4bb1

Browse files
committed
Stop spelling translated names in the code
1 parent 0aa5c08 commit 4dd4bb1

1 file changed

Lines changed: 0 additions & 16 deletions

File tree

‎cpp2rust/converter/converter.cpp‎

Lines changed: 0 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -793,22 +793,6 @@ bool Converter::RecordHasCopyableFields(const clang::RecordDecl *decl) {
793793
return false;
794794
}
795795
for (auto f : decl->fields()) {
796-
// Records that contain std::vector, std::array, std::string or anything
797-
// that is translated to Vec<>, do not derive Copy
798-
auto mapped = Mapper::Map(*this, f->getType());
799-
if (mapped.starts_with("Vec<")) {
800-
return false;
801-
}
802-
803-
if (IsUniquePtr(f->getType())) {
804-
return false;
805-
}
806-
807-
if (mapped.starts_with("BTreeMap<") || mapped.starts_with("Map<") ||
808-
mapped.starts_with("UnsafeMap<")) {
809-
return false;
810-
}
811-
812796
if (auto ptr_ty = f->getType()->getAs<clang::PointerType>()) {
813797
if (ptr_ty->getPointeeType()->isFunctionType()) {
814798
if (!FunctionPointerImplementsCopy()) {

0 commit comments

Comments
 (0)