Skip to content

Commit

Permalink
Adjust name of variable for consistency
Browse files Browse the repository at this point in the history
---
Signed-off-by: Michael Ferguson <[email protected]>
  • Loading branch information
mppf committed Oct 5, 2023
1 parent 8f62ff3 commit 3a886dd
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions frontend/lib/resolution/scope-queries.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1167,11 +1167,11 @@ bool LookupHelper::doLookupInScope(const Scope* scope,
if (onlyInnermost && got) return true;
}

std::unordered_set<ID>* ignoreClausesForShadowScope2 = nullptr;
std::unordered_set<ID>* ignoreClausesForShadowScopeTwo = nullptr;
if (checkMoreForWarning) {
// ignore 'use M' bringing in M and hiding the module name,
// for the purpose of the warning.
ignoreClausesForShadowScope2 = &foundInShadowScopeOneClauses;
ignoreClausesForShadowScopeTwo = &foundInShadowScopeOneClauses;
}

// now check shadow scope 2 (only relevant for 'private use')
Expand All @@ -1182,7 +1182,7 @@ bool LookupHelper::doLookupInScope(const Scope* scope,
VisibilitySymbols::SHADOW_SCOPE_TWO,
/* foundInAllContents */ nullptr,
/* foundInClauses */ nullptr,
ignoreClausesForShadowScope2);
ignoreClausesForShadowScopeTwo);
if (got && canCheckMoreForWarning && !checkMoreForWarning) {
checkMoreForWarning = true;
onlyInnermost = false;
Expand Down

0 comments on commit 3a886dd

Please sign in to comment.