Skip to content

Commit 1f9e4e7

Browse files
committed
Declarations7: fix accidental addition to unrelated query
1 parent 7e4d662 commit 1f9e4e7

File tree

1 file changed

+1
-8
lines changed

1 file changed

+1
-8
lines changed

cpp/common/src/codingstandards/cpp/rules/missingstaticspecifierfunctionredeclarationshared/MissingStaticSpecifierFunctionRedeclarationShared.qll

Lines changed: 1 addition & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -21,12 +21,5 @@ query predicate problems(
2121
not redeclaration.hasSpecifier("static") and
2222
fde != redeclaration and
2323
message = "The redeclaration of $@ with internal linkage misses the static specifier." and
24-
msgpiece = "function"
25-
and
26-
(
27-
fde.getFile().getAbsolutePath() < redeclaration.getFile().getAbsolutePath()
28-
or
29-
fde.getFile().getAbsolutePath() = redeclaration.getFile().getAbsolutePath() and
30-
fde.getLocation().getStartLine() < redeclaration.getLocation().getStartLine()
31-
)
24+
msgpiece = "function"
3225
}

0 commit comments

Comments
 (0)