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
2025-03-11 22:53:13 +00:00
committed by GitHub
parent bdf5d17b06
commit 68f6906c9f
3 changed files with 168 additions and 111 deletions
+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.