mirror of
https://github.com/carbon-language/carbon-lang.git
synced 2026-10-05 22:02:55 +01:00
Diagnose missing definitions in impl files (#4079)
This commit is contained in:
@@ -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};
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user