mirror of
https://github.com/github/codeql.git
synced 2025-12-16 16:53:25 +01:00
Swift: rename log package to logging
This commit is contained in:
@@ -15,7 +15,7 @@
|
||||
#include "swift/extractor/infra/SwiftLocationExtractor.h"
|
||||
#include "swift/extractor/infra/SwiftBodyEmissionStrategy.h"
|
||||
#include "swift/extractor/mangler/SwiftMangler.h"
|
||||
#include "swift/log/SwiftAssert.h"
|
||||
#include "swift/logging/SwiftAssert.h"
|
||||
|
||||
using namespace codeql;
|
||||
using namespace std::string_literals;
|
||||
|
||||
@@ -9,7 +9,7 @@ swift_cc_library(
|
||||
"//swift/extractor/config",
|
||||
"//swift/extractor/infra/file",
|
||||
"//swift/extractor/trap",
|
||||
"//swift/log",
|
||||
"//swift/logging",
|
||||
"//swift/third_party/swift-llvm-support",
|
||||
],
|
||||
)
|
||||
|
||||
@@ -13,7 +13,7 @@
|
||||
#include "swift/extractor/infra/SwiftBodyEmissionStrategy.h"
|
||||
#include "swift/extractor/infra/SwiftMangledName.h"
|
||||
#include "swift/extractor/config/SwiftExtractorState.h"
|
||||
#include "swift/log/SwiftAssert.h"
|
||||
#include "swift/logging/SwiftAssert.h"
|
||||
|
||||
namespace codeql {
|
||||
|
||||
|
||||
@@ -11,7 +11,7 @@ swift_cc_library(
|
||||
exclude = ["FsLogger.h"],
|
||||
) + [":path_hash_workaround"],
|
||||
visibility = ["//swift:__subpackages__"],
|
||||
deps = ["//swift/log"],
|
||||
deps = ["//swift/logging"],
|
||||
)
|
||||
|
||||
genrule(
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
#include "swift/log/SwiftLogging.h"
|
||||
#include "swift/logging/SwiftLogging.h"
|
||||
|
||||
namespace codeql {
|
||||
namespace fs_logger {
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
#include "swift/extractor/infra/file/TargetFile.h"
|
||||
#include "swift/extractor/infra/file/FsLogger.h"
|
||||
#include "swift/log/SwiftLogging.h"
|
||||
#include "swift/log/SwiftAssert.h"
|
||||
#include "swift/logging/SwiftLogging.h"
|
||||
#include "swift/logging/SwiftAssert.h"
|
||||
|
||||
#include <cassert>
|
||||
#include <cstdio>
|
||||
|
||||
@@ -4,7 +4,7 @@
|
||||
#include "swift/extractor/trap/generated/TrapTags.h"
|
||||
#include "swift/extractor/infra/file/TargetFile.h"
|
||||
#include "swift/extractor/infra/file/Path.h"
|
||||
#include "swift/log/SwiftAssert.h"
|
||||
#include "swift/logging/SwiftAssert.h"
|
||||
#include "swift/extractor/mangler/SwiftMangler.h"
|
||||
|
||||
namespace fs = std::filesystem;
|
||||
|
||||
@@ -18,7 +18,7 @@
|
||||
#include "swift/extractor/invocation/SwiftInvocationExtractor.h"
|
||||
#include "swift/extractor/trap/TrapDomain.h"
|
||||
#include "swift/extractor/infra/file/Path.h"
|
||||
#include "swift/log/SwiftAssert.h"
|
||||
#include "swift/logging/SwiftAssert.h"
|
||||
|
||||
using namespace std::string_literals;
|
||||
using namespace codeql::main_logger;
|
||||
|
||||
@@ -14,7 +14,7 @@
|
||||
|
||||
#include "swift/extractor/infra/file/PathHash.h"
|
||||
#include "swift/extractor/infra/file/Path.h"
|
||||
#include "swift/log/SwiftAssert.h"
|
||||
#include "swift/logging/SwiftAssert.h"
|
||||
|
||||
#ifdef __APPLE__
|
||||
// path is hardcoded as otherwise redirection could break when setting DYLD_FALLBACK_LIBRARY_PATH
|
||||
|
||||
@@ -52,7 +52,7 @@ swift_cc_library(
|
||||
visibility = ["//visibility:public"],
|
||||
deps = [
|
||||
"//swift/extractor/infra/file",
|
||||
"//swift/log",
|
||||
"//swift/logging",
|
||||
"@absl//absl/numeric:bits",
|
||||
],
|
||||
)
|
||||
|
||||
@@ -5,7 +5,7 @@
|
||||
|
||||
#include "swift/extractor/trap/TrapLabel.h"
|
||||
#include "swift/extractor/infra/file/TargetFile.h"
|
||||
#include "swift/log/SwiftLogging.h"
|
||||
#include "swift/logging/SwiftLogging.h"
|
||||
#include "swift/extractor/infra/SwiftMangledName.h"
|
||||
|
||||
namespace codeql {
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
cc_library(
|
||||
name = "log",
|
||||
name = "logging",
|
||||
srcs = glob(["*.cpp"]),
|
||||
hdrs = glob(["*.h"]),
|
||||
visibility = ["//visibility:public"],
|
||||
@@ -2,7 +2,7 @@
|
||||
|
||||
#include <cstdlib>
|
||||
|
||||
#include "swift/log/SwiftLogging.h"
|
||||
#include "swift/logging/SwiftLogging.h"
|
||||
|
||||
// assert CONDITION, which is always evaluated (once) regardless of the build type. If
|
||||
// CONDITION is not satisfied, emit a critical log optionally using provided format and arguments,
|
||||
@@ -1,4 +1,4 @@
|
||||
#include "swift/log/SwiftDiagnostics.h"
|
||||
#include "swift/logging/SwiftDiagnostics.h"
|
||||
|
||||
#include <binlog/Entries.hpp>
|
||||
#include <nlohmann/json.hpp>
|
||||
@@ -1,4 +1,4 @@
|
||||
#include "swift/log/SwiftLogging.h"
|
||||
#include "swift/logging/SwiftLogging.h"
|
||||
|
||||
#include <filesystem>
|
||||
#include <stdlib.h>
|
||||
@@ -13,7 +13,7 @@
|
||||
#include <binlog/adapt_stdoptional.hpp>
|
||||
#include <binlog/adapt_stdvariant.hpp>
|
||||
|
||||
#include "swift/log/SwiftDiagnostics.h"
|
||||
#include "swift/logging/SwiftDiagnostics.h"
|
||||
|
||||
// Logging macros. These will call `logger()` to get a Logger instance, picking up any `logger`
|
||||
// defined in the current scope. Domain-specific loggers can be added or used by either:
|
||||
Reference in New Issue
Block a user