File tree 2 files changed +6
-0
lines changed
2 files changed +6
-0
lines changed Original file line number Diff line number Diff line change @@ -148,6 +148,7 @@ void ASTScope::unqualifiedLookup(
148
148
if (auto *s = SF->getASTContext ().Stats )
149
149
++s->getFrontendCounters ().NumASTScopeLookups ;
150
150
151
+ #if SWIFT_BUILD_SWIFT_SYNTAX
151
152
// Perform validation of SwiftLexicalLookup if option
152
153
// Feature::UnqualifiedLookupValidation is enabled and lookup was not
153
154
// performed in a macro.
@@ -171,6 +172,9 @@ void ASTScope::unqualifiedLookup(
171
172
} else {
172
173
ASTScopeImpl::unqualifiedLookup (SF, loc, consumer);
173
174
}
175
+ #else
176
+ ASTScopeImpl::unqualifiedLookup (SF, loc, consumer);
177
+ #endif
174
178
}
175
179
176
180
llvm::SmallVector<LabeledStmt *, 4 > ASTScope::lookupLabeledStmts (
Original file line number Diff line number Diff line change @@ -58,6 +58,8 @@ public enum _SwiftifyInfo {
58
58
///
59
59
/// Parameter paramInfo: information about how the function uses the pointer passed to it. The
60
60
/// safety of the generated wrapper function depends on this info being extensive and accurate.
61
+ #if hasFeature(Macros)
61
62
@attached ( peer, names: overloaded)
62
63
public macro _SwiftifyImport( _ paramInfo: _SwiftifyInfo ... , typeMappings: [ String : String ] = [ : ] ) =
63
64
#externalMacro( module: " SwiftMacros " , type: " SwiftifyImportMacro " )
65
+ #endif
You can’t perform that action at this time.
0 commit comments