Swift extractor: Use a global variable for the extractor name

This commit is contained in:
Calum Grant
2024-01-16 10:56:18 +00:00
parent 39edfa3c14
commit 2cc574dc70
6 changed files with 26 additions and 37 deletions

View File

@@ -7,11 +7,12 @@
#include "swift/logging/SwiftLogging.h"
const std::string_view codeql::programName = "autobuilder";
const std::string_view codeql::extractorName = "swift";
constexpr codeql::Diagnostic incompatibleOs = codeql::swiftDiagnostic(
"incompatible-os",
"Incompatible operating system (expected macOS)",
"[Change the Actions runner][1] to run on macOS.\n"
constexpr codeql::Diagnostic incompatibleOs = codeql::Diagnostic(
.id="incompatible-os",
.name="Incompatible operating system (expected macOS)",
.action="[Change the Actions runner][1] to run on macOS.\n"
"\n"
"You may be able to run analysis on Linux by setting up a [manual build command][2].\n"
"\n"