File tree Expand file tree Collapse file tree 2 files changed +8
-1
lines changed
Expand file tree Collapse file tree 2 files changed +8
-1
lines changed Original file line number Diff line number Diff line change @@ -13,7 +13,8 @@ using namespace codeql;
1313// all the other files.
1414bool SwiftBodyEmissionStrategy::shouldEmitDeclBody (const swift::Decl& decl) {
1515 auto module = decl.getModuleContext ();
16- if (module != ¤tModule) {
16+ if (module != ¤tModule &&
17+ !(module ->findUnderlyingClangModule () && currentModule.isSubmoduleOf (module ))) {
1718 return false ;
1819 }
1920 if (currentLazyDeclaration && currentLazyDeclaration != &decl) {
Original file line number Diff line number Diff line change 1616#include " swift/extractor/config/SwiftExtractorState.h"
1717#include " swift/logging/SwiftAssert.h"
1818
19+ #include < swift/AST/ASTContext.h>
20+ #include < swift/AST/GenericEnvironment.h>
21+ #include < swift/AST/GenericParamList.h>
22+ #include < swift/AST/ClangModuleLoader.h>
23+ #include < clang/Basic/Module.h>
24+
1925namespace codeql {
2026
2127// The main responsibilities of the SwiftDispatcher are as follows:
You can’t perform that action at this time.
0 commit comments