File tree Expand file tree Collapse file tree 4 files changed +27
-0
lines changed Expand file tree Collapse file tree 4 files changed +27
-0
lines changed Original file line number Diff line number Diff line change @@ -6,6 +6,7 @@ swift_cc_library(
6
6
hdrs = glob (["*.h" ]),
7
7
visibility = ["//swift:__subpackages__" ],
8
8
deps = [
9
+ "//swift/extractor/config" ,
9
10
"//swift/extractor/infra" ,
10
11
],
11
12
)
Original file line number Diff line number Diff line change
1
+ #include " swift/extractor/invocation/SwiftInvocationExtractor.h"
2
+
3
+ namespace codeql {
4
+ void extractSwiftInvocation (SwiftExtractorState& state,
5
+ swift::CompilerInstance& compiler,
6
+ codeql::TrapDomain& trap) {}
7
+ } // namespace codeql
Original file line number Diff line number Diff line change
1
+ #pragma once
2
+
3
+ #include < memory>
4
+
5
+ #include < swift/AST/SourceFile.h>
6
+ #include < swift/Frontend/Frontend.h>
7
+
8
+ #include " swift/extractor/config/SwiftExtractorState.h"
9
+ #include " swift/extractor/trap/TrapDomain.h"
10
+
11
+ namespace codeql {
12
+
13
+ void extractSwiftInvocation (SwiftExtractorState& state,
14
+ swift::CompilerInstance& compiler,
15
+ codeql::TrapDomain& trap);
16
+ } // namespace codeql
Original file line number Diff line number Diff line change 9
9
10
10
#include < swift/Basic/LLVMInitialize.h>
11
11
#include < swift/FrontendTool/FrontendTool.h>
12
+ #include < swift/Basic/InitializeSwiftModules.h>
12
13
13
14
#include " swift/extractor/SwiftExtractor.h"
14
15
#include " swift/extractor/infra/TargetDomains.h"
15
16
#include " swift/extractor/remapping/SwiftFileInterception.h"
16
17
#include " swift/extractor/invocation/SwiftDiagnosticsConsumer.h"
18
+ #include " swift/extractor/invocation/SwiftInvocationExtractor.h"
17
19
#include " swift/extractor/trap/TrapDomain.h"
18
20
#include " swift/extractor/infra/file/Path.h"
19
21
#include < swift/Basic/InitializeSwiftModules.h>
@@ -89,6 +91,7 @@ class Observer : public swift::FrontendObserver {
89
91
90
92
void performedSemanticAnalysis (swift::CompilerInstance& compiler) override {
91
93
codeql::extractSwiftFiles (state, compiler);
94
+ codeql::extractSwiftInvocation (state, compiler, invocationTrap);
92
95
}
93
96
94
97
private:
You can’t perform that action at this time.
0 commit comments