Skip to content

Commit f59f800

Browse files
committed
---
yaml --- r: 278443 b: refs/heads/swift-5.1-old-llvm-branch c: 1ce86b9 h: refs/heads/master i: 278441: 3df1620 278439: da50a4c
1 parent cfbebe6 commit f59f800

File tree

2 files changed

+8
-7
lines changed

2 files changed

+8
-7
lines changed

[refs]

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1241,7 +1241,7 @@ refs/tags/swift-DEVELOPMENT-SNAPSHOT-2019-01-24-a: b6f62823aa5010b2ae53f15f72a57
12411241
refs/heads/marcrasi-astverifier-disable: 3fac766a23a77ebd0640296bfd7fc116ea60a4e0
12421242
refs/heads/revert-22227-a-tall-white-fountain-played: adfce60b2eaa54903ea189bed8a783bca609fa53
12431243
refs/heads/revert-22300-revert-22227-a-tall-white-fountain-played: 5f92040224df7dd4e618fdfb367349df64d8acad
1244-
refs/heads/swift-5.1-old-llvm-branch: 8e7ff01caa0a58f01508e193901de909c636cfec
1244+
refs/heads/swift-5.1-old-llvm-branch: 1ce86b9def163d9df15079d04f3c6220047df962
12451245
refs/heads/swift-5.1-branch: 8060872acb4105d9655e020fe047e1ebcd77d0fb
12461246
refs/tags/swift-4.2.2-RELEASE: e429d1f1aaf59e69d38207a96e56265c7f6fccec
12471247
refs/tags/swift-5.0-DEVELOPMENT-SNAPSHOT-2019-02-02-a: 3e5a03d32ff3b1e9af90d6c1198c14f938379a6e

branches/swift-5.1-old-llvm-branch/lib/AST/NameLookup.cpp

Lines changed: 7 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1497,9 +1497,9 @@ namespace {
14971497
computeBaseNLOptions(const LegacyUnqualifiedLookup::Options options,
14981498
const bool isOriginallyTypeLookup);
14991499

1500-
bool resolveIsCascadingUse(const DeclContext *const dc,
1501-
Optional<bool> isCascadingUse,
1502-
bool onlyCareAboutFunctionBody);
1500+
static bool resolveIsCascadingUse(const DeclContext *const dc,
1501+
Optional<bool> isCascadingUse,
1502+
bool onlyCareAboutFunctionBody);
15031503
};
15041504
} // namespace
15051505

@@ -2007,8 +2007,6 @@ UnqualifiedLookupFactory::lookupInFunctionDecl(AbstractFunctionDecl *AFD,
20072007
namelookup::FindLocalVal localVal(SM, Loc, Consumer);
20082008
localVal.visit(AFD->getBody());
20092009
if (isFinishedWithLookupNowThatIsAboutToLookForOuterResults())
2010-
// clang-format off
2011-
// TODO: when returning finished, return nulls?
20122010
return None;
20132011

20142012
if (auto *P = AFD->getImplicitSelfDecl())
@@ -2030,6 +2028,7 @@ UnqualifiedLookupFactory::lookupInFunctionDecl(AbstractFunctionDecl *AFD,
20302028
addGenericParametersForFunction(AFD);
20312029
if (isFinishedWithLookupNowThatIsAboutToLookForOuterResults())
20322030
return None;
2031+
// clang-format off
20332032
return PerScopeLookupState{
20342033
false,
20352034
fnParent,
@@ -2039,9 +2038,11 @@ UnqualifiedLookupFactory::lookupInFunctionDecl(AbstractFunctionDecl *AFD,
20392038
// might be type checking a default argument expression and
20402039
// performing name lookup from there), the base declaration
20412040
// is the nominal type, not 'self'.
2042-
isOutsideBodyOfFunction(AFD) ? fnDeclContext : AFD, fnDeclContext,
2041+
isOutsideBodyOfFunction(AFD) ? fnDeclContext : AFD,
2042+
fnDeclContext,
20432043
AFD->getDeclContext()),
20442044
returnValueForIsCascadingUse};
2045+
// clang-format on
20452046
}
20462047
// Look in the generic parameters after checking our local declaration.
20472048
addGenericParametersForFunction(AFD);

0 commit comments

Comments
 (0)