File tree Expand file tree Collapse file tree 2 files changed +5
-0
lines changed Expand file tree Collapse file tree 2 files changed +5
-0
lines changed Original file line number Diff line number Diff line change @@ -114,6 +114,9 @@ static std::unordered_set<swift::ModuleDecl*> extractDeclarations(
114
114
swift::ModuleDecl& module ,
115
115
swift::SourceFile* primaryFile = nullptr ) {
116
116
auto filename = getFilename (module , primaryFile);
117
+ if (primaryFile) {
118
+ state.sourceFiles .push_back (filename);
119
+ }
117
120
118
121
// The extractor can be called several times from different processes with
119
122
// the same input file(s). Using `TargetFile` the first process will win, and the following
Original file line number Diff line number Diff line change @@ -19,6 +19,8 @@ struct SwiftExtractorState {
19
19
// All modules encountered during this extractor run, which therefore are dependencies of the
20
20
// outcomes of this run
21
21
std::unordered_set<const swift::ModuleDecl*> encounteredModules;
22
+
23
+ std::vector<std::filesystem::path> sourceFiles;
22
24
};
23
25
24
26
} // namespace codeql
You can’t perform that action at this time.
0 commit comments