Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 0ad529d

Browse files
committed
Swift: move logging to a common directory
1 parent c7c12a7 commit 0ad529d

8 files changed

Lines changed: 10 additions & 7 deletions

File tree

swift/extractor/infra/BUILD.bazel

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,8 +8,8 @@ swift_cc_library(
88
deps = [
99
"//swift/extractor/config",
1010
"//swift/extractor/infra/file",
11-
"//swift/extractor/infra/log",
1211
"//swift/extractor/trap",
12+
"//swift/log",
1313
"//swift/third_party/swift-llvm-support",
1414
],
1515
)

swift/extractor/infra/SwiftDispatcher.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@
1313
#include "swift/extractor/infra/SwiftBodyEmissionStrategy.h"
1414
#include "swift/extractor/infra/SwiftMangledName.h"
1515
#include "swift/extractor/config/SwiftExtractorState.h"
16-
#include "swift/extractor/infra/log/SwiftLogging.h"
16+
#include "swift/log/SwiftLogging.h"
1717

1818
namespace codeql {
1919

swift/extractor/main.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@
1818
#include "swift/extractor/invocation/SwiftInvocationExtractor.h"
1919
#include "swift/extractor/trap/TrapDomain.h"
2020
#include "swift/extractor/infra/file/Path.h"
21-
#include "swift/extractor/infra/log/SwiftLogging.h"
21+
#include "swift/log/SwiftLogging.h"
2222

2323
using namespace std::string_literals;
2424

swift/extractor/trap/BUILD.bazel

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,10 @@ genrule(
2323
"--schema=$(location //swift:schema)",
2424
"--script-name=codegen/codegen.py",
2525
]),
26-
exec_tools = ["//misc/codegen", "//swift:schema"],
26+
exec_tools = [
27+
"//misc/codegen",
28+
"//swift:schema",
29+
],
2730
)
2831

2932
filegroup(
@@ -49,7 +52,7 @@ swift_cc_library(
4952
visibility = ["//visibility:public"],
5053
deps = [
5154
"//swift/extractor/infra/file",
52-
"//swift/extractor/infra/log",
55+
"//swift/log",
5356
"@absl//absl/numeric:bits",
5457
],
5558
)

swift/extractor/trap/TrapDomain.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55

66
#include "swift/extractor/trap/TrapLabel.h"
77
#include "swift/extractor/infra/file/TargetFile.h"
8-
#include "swift/extractor/infra/log/SwiftLogging.h"
8+
#include "swift/log/SwiftLogging.h"
99
#include "swift/extractor/infra/SwiftMangledName.h"
1010

1111
namespace codeql {

swift/extractor/infra/log/SwiftLogging.cpp renamed to swift/log/SwiftLogging.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
#include "swift/extractor/infra/log/SwiftLogging.h"
1+
#include "swift/log/SwiftLogging.h"
22

33
#include <filesystem>
44
#include <stdlib.h>

0 commit comments

Comments
 (0)