Thanks to visit codestin.com Credit goes to github.com
We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 5b75b4d commit 9c73ae5Copy full SHA for 9c73ae5
1 file changed
swift/extractor/main.cpp
@@ -16,6 +16,14 @@ class Observer : public swift::FrontendObserver {
16
public:
17
explicit Observer(const codeql::SwiftExtractorConfiguration& config) : config{config} {}
18
19
+ void parsedArgs(swift::CompilerInvocation& invocation) override {
20
+ // Original compiler and the extractor-compiler get into conflicts when
21
+ // both produce the same output files.
22
+ // TODO: change the final arifact destinations instead of disabling
23
+ // the artifact generation completely?
24
+ invocation.getFrontendOptions().RequestedAction = swift::FrontendOptions::ActionType::Typecheck;
25
+ }
26
+
27
void performedSemanticAnalysis(swift::CompilerInstance& compiler) override {
28
codeql::extractSwiftFiles(config, compiler);
29
}
0 commit comments