Skip to content

Commit e9d2681

Browse files
committed
Re-add missing check
1 parent ac28b0f commit e9d2681

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

cpp2rust/converter/converter.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -294,7 +294,7 @@ bool Converter::VisitFunctionDecl(clang::FunctionDecl *decl) {
294294
if (!IsConvertibleFunctionDecl(decl)) {
295295
return false;
296296
}
297-
if (!decl_ids_.insert(GetID(decl)).second) {
297+
if (!IsInMainFile(decl) && !decl_ids_.insert(GetID(decl)).second) {
298298
return false;
299299
}
300300
decl->dump(log());

0 commit comments

Comments
 (0)