Skip to content

Commit 39edfa3

Browse files
committed
Swift extractor: Rename a SwiftDiagnostic to Diagnostic
1 parent f82c29e commit 39edfa3

File tree

1 file changed

+16
-17
lines changed

1 file changed

+16
-17
lines changed

swift/tools/diagnostics/AutobuilderIncompatibleOs.cpp

Lines changed: 16 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -8,23 +8,22 @@
88

99
const std::string_view codeql::programName = "autobuilder";
1010

11-
constexpr codeql::SwiftDiagnostic incompatibleOs{
12-
.id = "incompatible-os",
13-
.name = "Incompatible operating system (expected macOS)",
14-
.action =
15-
"[Change the Actions runner][1] to run on macOS.\n"
16-
"\n"
17-
"You may be able to run analysis on Linux by setting up a [manual build command][2].\n"
18-
"\n"
19-
"[1]: "
20-
"https://docs.github.com/en/actions/using-workflows/"
21-
"workflow-syntax-for-github-actions#jobsjob_idruns-on\n"
22-
"[2]: "
23-
"https://docs.github.com/en/enterprise-server/code-security/code-scanning/"
24-
"automatically-scanning-your-code-for-vulnerabilities-and-errors/"
25-
"configuring-the-codeql-workflow-for-compiled-languages#adding-build-steps-for-a-compiled-"
26-
"language",
27-
};
11+
constexpr codeql::Diagnostic incompatibleOs = codeql::swiftDiagnostic(
12+
"incompatible-os",
13+
"Incompatible operating system (expected macOS)",
14+
"[Change the Actions runner][1] to run on macOS.\n"
15+
"\n"
16+
"You may be able to run analysis on Linux by setting up a [manual build command][2].\n"
17+
"\n"
18+
"[1]: "
19+
"https://docs.github.com/en/actions/using-workflows/"
20+
"workflow-syntax-for-github-actions#jobsjob_idruns-on\n"
21+
"[2]: "
22+
"https://docs.github.com/en/enterprise-server/code-security/code-scanning/"
23+
"automatically-scanning-your-code-for-vulnerabilities-and-errors/"
24+
"configuring-the-codeql-workflow-for-compiled-languages#adding-build-steps-for-a-"
25+
"compiled-"
26+
"language");
2827

2928
static codeql::Logger& logger() {
3029
static codeql::Logger ret{"main"};

0 commit comments

Comments
 (0)