Skip to content

Commit a9f55d2

Browse files
committed
Scope lib: rename predicate
1 parent b2c5896 commit a9f55d2

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

cpp/common/src/codingstandards/cpp/Scope.qll

+3-3
Original file line numberDiff line numberDiff line change
@@ -149,8 +149,8 @@ private UserDeclaration getPotentialScopeOfDeclaration_candidate(UserDeclaration
149149
)
150150
}
151151

152-
/** Gets a Declarationthat is in the potential scope of Declaration `v`. */
153-
private UserDeclaration getOuterScopesOfDeclaration_candidate(UserDeclaration v) {
152+
/** Gets a Declaration that is in the potential scope of Declaration `v`. */
153+
private UserDeclaration getPotentialScopeOfDeclarationStrict_candidate(UserDeclaration v) {
154154
exists(Scope s |
155155
result = s.getADeclaration() and
156156
(
@@ -175,7 +175,7 @@ predicate inSameTranslationUnit(File f1, File f2) {
175175
*/
176176
cached
177177
UserDeclaration getPotentialScopeOfDeclarationStrict(UserDeclaration v) {
178-
result = getOuterScopesOfDeclaration_candidate(v) and
178+
result = getPotentialScopeOfDeclarationStrict_candidate(v) and
179179
inSameTranslationUnit(v.getFile(), result.getFile())
180180
}
181181

0 commit comments

Comments
 (0)