mirror of
https://github.com/apple/swift.git
synced 2025-12-21 12:14:44 +01:00
[AST] Use flags instead of booleans for UnqualifiedLookup.
This commit is contained in:
@@ -873,7 +873,8 @@ static void diagSyntacticUseRestrictions(TypeChecker &TC, const Expr *E,
|
||||
|
||||
DeclContext *topLevelContext = DC->getModuleScopeContext();
|
||||
UnqualifiedLookup lookup(VD->getBaseName(), topLevelContext, &TC,
|
||||
/*knownPrivate*/true);
|
||||
/*Loc=*/SourceLoc(),
|
||||
UnqualifiedLookup::Flags::KnownPrivate);
|
||||
|
||||
// Group results by module. Pick an arbitrary result from each module.
|
||||
llvm::SmallDenseMap<const ModuleDecl*,const ValueDecl*,4> resultsByModule;
|
||||
|
||||
Reference in New Issue
Block a user