Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 2 additions & 3 deletions cpp2rust/converter/mapper.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -391,7 +391,6 @@ decltype(types_)::const_iterator search(clang::QualType qual_type) {
}

void addRulesFromDirectory(const std::filesystem::path &dir, Model model) {
std::vector<std::filesystem::path> paths;
for (const auto &entry : std::filesystem::recursive_directory_iterator(dir)) {
auto &path = entry.path();
if (entry.is_regular_file() && path.extension() == ".cpp") {
Expand Down Expand Up @@ -670,7 +669,7 @@ void AddRuleForUserDefinedType(clang::NamedDecl *decl) {
break;
case Model::kRefCount:
types_[cpp_name + " *"] = TranslationRule::TypeTgt::RefcountPtr(
"PtrDyn<dyn " + rs_name + ">");
"PtrDyn<dyn " + rs_name + '>');
break;
}
} else {
Expand All @@ -681,7 +680,7 @@ void AddRuleForUserDefinedType(clang::NamedDecl *decl) {
break;
case Model::kRefCount:
types_[cpp_name + " *"] =
TranslationRule::TypeTgt::RefcountPtr("Ptr<" + rs_name + ">");
TranslationRule::TypeTgt::RefcountPtr("Ptr<" + rs_name + '>');
break;
}
}
Expand Down
Loading
Loading