Swift: move logging to a common directory

This commit is contained in:
Paolo Tranquilli
2023-05-03 05:46:12 +02:00
parent c7c12a7108
commit 0ad529dff8
8 changed files with 10 additions and 7 deletions

View File

@@ -8,8 +8,8 @@ swift_cc_library(
deps = [
"//swift/extractor/config",
"//swift/extractor/infra/file",
"//swift/extractor/infra/log",
"//swift/extractor/trap",
"//swift/log",
"//swift/third_party/swift-llvm-support",
],
)

View File

@@ -13,7 +13,7 @@
#include "swift/extractor/infra/SwiftBodyEmissionStrategy.h"
#include "swift/extractor/infra/SwiftMangledName.h"
#include "swift/extractor/config/SwiftExtractorState.h"
#include "swift/extractor/infra/log/SwiftLogging.h"
#include "swift/log/SwiftLogging.h"
namespace codeql {

View File

@@ -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/extractor/infra/log/SwiftLogging.h"
#include "swift/log/SwiftLogging.h"
using namespace std::string_literals;

View File

@@ -23,7 +23,10 @@ genrule(
"--schema=$(location //swift:schema)",
"--script-name=codegen/codegen.py",
]),
exec_tools = ["//misc/codegen", "//swift:schema"],
exec_tools = [
"//misc/codegen",
"//swift:schema",
],
)
filegroup(
@@ -49,7 +52,7 @@ swift_cc_library(
visibility = ["//visibility:public"],
deps = [
"//swift/extractor/infra/file",
"//swift/extractor/infra/log",
"//swift/log",
"@absl//absl/numeric:bits",
],
)

View File

@@ -5,7 +5,7 @@
#include "swift/extractor/trap/TrapLabel.h"
#include "swift/extractor/infra/file/TargetFile.h"
#include "swift/extractor/infra/log/SwiftLogging.h"
#include "swift/log/SwiftLogging.h"
#include "swift/extractor/infra/SwiftMangledName.h"
namespace codeql {

View File

@@ -1,4 +1,4 @@
#include "swift/extractor/infra/log/SwiftLogging.h"
#include "swift/log/SwiftLogging.h"
#include <filesystem>
#include <stdlib.h>