Skip to content

Commit 4a65d1b

Browse files
committed
Change name
1 parent deebeb3 commit 4a65d1b

2 files changed

Lines changed: 3 additions & 3 deletions

File tree

cpp2rust/converter/converter.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -669,7 +669,7 @@ bool Converter::RecordDerivesCopy(const clang::RecordDecl *decl) {
669669
std::find(derives->begin(), derives->end(), "Copy") != derives->end();
670670
}
671671

672-
bool Converter::RecordFieldsCopyable(const clang::RecordDecl *decl) {
672+
bool Converter::RecordHasCopyableFields(const clang::RecordDecl *decl) {
673673
for (auto f : decl->fields()) {
674674
// Records that contain std::vector, std::array, std::string or anything
675675
// that is translated to Vec<>, do not derive Copy
@@ -3491,7 +3491,7 @@ Converter::GetStructAttributes(const clang::RecordDecl *decl) {
34913491

34923492
std::vector<const char *> struct_attrs;
34933493

3494-
if (RecordFieldsCopyable(decl)) {
3494+
if (RecordHasCopyableFields(decl)) {
34953495
struct_attrs.emplace_back("Copy");
34963496
}
34973497

cpp2rust/converter/converter.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -587,7 +587,7 @@ class Converter : public clang::RecursiveASTVisitor<Converter> {
587587

588588
bool RecordDerivesCopy(const clang::RecordDecl *decl);
589589

590-
bool RecordFieldsCopyable(const clang::RecordDecl *decl);
590+
bool RecordHasCopyableFields(const clang::RecordDecl *decl);
591591

592592
bool ShouldReplaceWithMappedBody(clang::DeclRefExpr *expr) const;
593593

0 commit comments

Comments
 (0)