mirror of
https://github.com/apple/swift.git
synced 2025-12-21 12:14:44 +01:00
swift-module-digester: add a flag to include Swift decls specifically.
This flag allows us to diagnose the overlay part exclusively without digesting the entire SDK framework.
This commit is contained in:
@@ -1261,6 +1261,10 @@ SwiftDeclCollector::constructInitNode(ConstructorDecl *CD) {
|
||||
|
||||
bool swift::ide::api::
|
||||
SDKContext::shouldIgnore(Decl *D, const Decl* Parent) const {
|
||||
// Exclude all clang nodes if we're comparing Swift decls specifically.
|
||||
if (Opts.SwiftOnly && isFromClang(D)) {
|
||||
return true;
|
||||
}
|
||||
if (checkingABI()) {
|
||||
if (auto *VD = dyn_cast<ValueDecl>(D)) {
|
||||
// Private vars with fixed binary orders can have ABI-impact, so we should
|
||||
|
||||
Reference in New Issue
Block a user