mirror of
https://github.com/github/codeql.git
synced 2025-12-16 16:53:25 +01:00
Swift extractor: Simplify declarations back
This commit is contained in:
@@ -8,10 +8,11 @@
|
||||
#include "swift/logging/SwiftLogging.h"
|
||||
#include "swift/swift-autobuilder/CustomizingBuildLink.h"
|
||||
|
||||
constexpr codeql::Diagnostic buildCommandFailed = codeql::Diagnostic{
|
||||
.id="build-command-failed", .name="Detected build command failed",
|
||||
.action="Set up a [manual build command][1] or [check the logs of the autobuild step][2].\n"
|
||||
"\n[1]: " MANUAL_BUILD_COMMAND_HELP_LINK "\n[2]: " CHECK_LOGS_HELP_LINK};
|
||||
constexpr codeql::Diagnostic buildCommandFailed{
|
||||
.id = "build-command-failed",
|
||||
.name = "Detected build command failed",
|
||||
.action = "Set up a [manual build command][1] or [check the logs of the autobuild step][2].\n"
|
||||
"\n[1]: " MANUAL_BUILD_COMMAND_HELP_LINK "\n[2]: " CHECK_LOGS_HELP_LINK};
|
||||
|
||||
static codeql::Logger& logger() {
|
||||
static codeql::Logger ret{"build"};
|
||||
|
||||
@@ -14,15 +14,15 @@ static constexpr std::string_view unknownType = "<unknown_target_type>";
|
||||
const std::string_view codeql::programName = "autobuilder";
|
||||
const std::string_view codeql::extractorName = "swift";
|
||||
|
||||
constexpr codeql::Diagnostic noProjectFound = codeql::Diagnostic{
|
||||
.id="no-project-found",
|
||||
.name="No Xcode project or workspace found",
|
||||
.action="Set up a [manual build command][1].\n\n[1]: " MANUAL_BUILD_COMMAND_HELP_LINK};
|
||||
constexpr codeql::Diagnostic noProjectFound{
|
||||
.id = "no-project-found",
|
||||
.name = "No Xcode project or workspace found",
|
||||
.action = "Set up a [manual build command][1].\n\n[1]: " MANUAL_BUILD_COMMAND_HELP_LINK};
|
||||
|
||||
constexpr codeql::Diagnostic noSwiftTarget = codeql::Diagnostic{
|
||||
.id="no-swift-target",
|
||||
.name="No Swift compilation target found",
|
||||
.action="To analyze a custom set of source files, set up a [manual build "
|
||||
constexpr codeql::Diagnostic noSwiftTarget{
|
||||
.id = "no-swift-target",
|
||||
.name = "No Swift compilation target found",
|
||||
.action = "To analyze a custom set of source files, set up a [manual build "
|
||||
"command][1].\n\n[1]: " MANUAL_BUILD_COMMAND_HELP_LINK};
|
||||
|
||||
static codeql::Logger& logger() {
|
||||
|
||||
Reference in New Issue
Block a user