We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent ac28b0f commit e9d2681Copy full SHA for e9d2681
1 file changed
cpp2rust/converter/converter.cpp
@@ -294,7 +294,7 @@ bool Converter::VisitFunctionDecl(clang::FunctionDecl *decl) {
294
if (!IsConvertibleFunctionDecl(decl)) {
295
return false;
296
}
297
- if (!decl_ids_.insert(GetID(decl)).second) {
+ if (!IsInMainFile(decl) && !decl_ids_.insert(GetID(decl)).second) {
298
299
300
decl->dump(log());
0 commit comments