Swift: collect TRAP files related to an extractor run

In order to do this a mutable `SwiftExtractorState` is introduced.
This commit is contained in:
Paolo Tranquilli
2023-01-18 09:11:57 +01:00
parent c31c515205
commit c7f13f1036
6 changed files with 47 additions and 29 deletions

View File

@@ -1,11 +1,10 @@
#pragma once
#include "swift/extractor/config/SwiftExtractorConfiguration.h"
#include "swift/extractor/config/SwiftExtractorState.h"
#include <swift/AST/SourceFile.h>
#include <swift/Frontend/Frontend.h>
#include <memory>
namespace codeql {
void extractSwiftFiles(const SwiftExtractorConfiguration& config,
swift::CompilerInstance& compiler);
void extractSwiftFiles(SwiftExtractorState& state, swift::CompilerInstance& compiler);
} // namespace codeql