Diagnose missing definitions in impl files (#4079)

This commit is contained in:
Geoff Romer
2024-06-26 18:57:37 +00:00
committed by GitHub
parent a699480dc9
commit 5a8dfda4f0
10 changed files with 829 additions and 6 deletions
+4
View File
@@ -303,6 +303,10 @@ static auto BuildFunctionDecl(Context& context,
}
}
if (!is_definition && context.IsImplFile() && !is_extern) {
context.definitions_required().push_back(function_info.decl_id);
}
return {function_decl.function_id, function_info.decl_id};
}