refactor: diagnostic handling (#337)

This commit is contained in:
ykiko
2026-01-03 16:23:06 +08:00
committed by GitHub
parent dee5e136b7
commit dd8f0dd90d
62 changed files with 948 additions and 914 deletions

View File

@@ -73,8 +73,8 @@ TEST_CASE(GCC, {.skip = !(CIEnvironment && (Windows || Linux))}) {
)");
auto unit = compile(params);
ASSERT_TRUE(unit.has_value());
ASSERT_TRUE(unit->diagnostics().empty());
ASSERT_TRUE(unit.completed());
ASSERT_TRUE(unit.diagnostics().empty());
};
TEST_CASE(MSVC, {.skip = !CIEnvironment}) {
@@ -112,8 +112,8 @@ TEST_CASE(Clang, {.skip = !CIEnvironment}) {
)");
auto unit = compile(params);
ASSERT_TRUE(unit.has_value());
ASSERT_TRUE(unit->diagnostics().empty());
ASSERT_TRUE(unit.completed());
ASSERT_TRUE(unit.diagnostics().empty());
};
TEST_CASE(Zig, {.skip = !CIEnvironment}) {