mirror of
https://github.com/github/codeql.git
synced 2026-04-28 18:25:24 +02:00
Merge pull request #12706 from github/alexdenisov/consider-non-swift-modules-as-lazy
Swift: consider declarations from non-swift modules as lazy
This commit is contained in:
@@ -265,7 +265,8 @@ class SwiftDispatcher {
|
||||
private:
|
||||
bool isLazyDeclaration(const swift::Decl& decl) {
|
||||
swift::ModuleDecl* module = decl.getModuleContext();
|
||||
return module->isBuiltinModule() || module->getName().str() == "__ObjC";
|
||||
return module->isBuiltinModule() || module->getName().str() == "__ObjC" ||
|
||||
module->isNonSwiftModule();
|
||||
}
|
||||
|
||||
template <typename T, typename = void>
|
||||
|
||||
Reference in New Issue
Block a user