Refactor BuildFunctionDecl (#5098)

Trying to break apart the function on reasonable boundaries because it's
big. Changes behavior of class functions with virtual modifiers to
remove the modifier when diagnosing, which is more consistent with other
modifier diagnostics.
This commit is contained in:
Jon Ross-Perkins authored and GitHub committed 2025-03-11 22:53:13 +00:00
1 parent bdf5d17b06
commit 68f6906c9f
3 files changed
+168 -111

No files matched your search

+1 -1
View File
@@ -18,7 +18,7 @@
namespace Carbon::Check {
auto DeclNameStack::NameContext::prev_inst_id() -> SemIR::InstId {
auto DeclNameStack::NameContext::prev_inst_id() const -> SemIR::InstId {
switch (state) {
case NameContext::State::Error:
// The name is malformed and a diagnostic has already been emitted.