Skip to content

Commit bb3483c

Browse files
committed
edits
1 parent 7ea5b4d commit bb3483c

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

cpp2rust/converter/mapper.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -592,7 +592,7 @@ const TranslationRule::ExprRule *GetExprRule(const clang::Expr *expr) {
592592

593593
std::string MapFunctionName(const clang::FunctionDecl *decl) {
594594
assert(decl);
595-
if (exprs_.contains(ToString(decl))) {
595+
if (exprs_.contains(GetExprMapKey(ToString(decl)))) {
596596
return std::format("libcc2rs::{}_{}", decl->getNameAsString(),
597597
model_ == Model::kRefCount ? "refcount" : "unsafe");
598598
}
@@ -883,7 +883,7 @@ void LoadTranslationRules(Model model, clang::ASTContext &ctx,
883883
addRulesFromDirectory(rules_dir, model);
884884
addBuiltinTypes(model);
885885

886-
#if 1
886+
#if 0
887887
for (auto &[src, rule] : exprs_) {
888888
llvm::errs() << "Expr key: " << src << '\n';
889889
rule.dump();

0 commit comments

Comments
 (0)