Swift extractor: Simplify declarations back

This commit is contained in:
Calum Grant
2024-01-16 11:31:15 +00:00
parent f400a5f49f
commit 7cadb0a574
4 changed files with 25 additions and 22 deletions

View File

@@ -97,13 +97,15 @@ inline constexpr Diagnostic::Visibility operator&(Diagnostic::Visibility lhs,
static_cast<unsigned char>(rhs));
}
constexpr Diagnostic internalError = Diagnostic{
.id="internal-error", .name="Internal error",
.action="Some or all of the Swift analysis may have failed.\n"
"\n"
"If the error persists, contact support, quoting the error message and describing what "
"happened, or [open an issue in our open source repository][1].\n"
"\n"
"[1]: https://github.com/github/codeql/issues/new?labels=bug&template=ql---general.md",
.severity=Diagnostic::Severity::warning};
constexpr Diagnostic internalError{
.id = "internal-error",
.name = "Internal error",
.action =
"Some or all of the Swift analysis may have failed.\n"
"\n"
"If the error persists, contact support, quoting the error message and describing what "
"happened, or [open an issue in our open source repository][1].\n"
"\n"
"[1]: https://github.com/github/codeql/issues/new?labels=bug&template=ql---general.md",
.severity = Diagnostic::Severity::warning};
} // namespace codeql