Rename predicate with snake cased name

This commit is contained in:
Arthur Baars
2021-06-24 11:59:13 +02:00
parent b2be1c3b3d
commit 6bed50a86b

View File

@@ -8,18 +8,18 @@ class ApiUseTest extends InlineExpectationsTest {
override string getARelevantTag() { result = "use" }
private predicate relevant_node(API::Node a, DataFlow::Node n, Location l) {
private predicate relevantNode(API::Node a, DataFlow::Node n, Location l) {
n = a.getAUse() and
l = n.getLocation()
}
override predicate hasActualResult(Location location, string element, string tag, string value) {
exists(API::Node a, DataFlow::Node n | relevant_node(a, n, location) |
exists(API::Node a, DataFlow::Node n | relevantNode(a, n, location) |
tag = "use" and
// Only report the longest path on this line:
value =
max(API::Node a2, Location l2, DataFlow::Node n2 |
relevant_node(a2, n2, l2) and
relevantNode(a2, n2, l2) and
l2.getFile() = location.getFile() and
l2.getStartLine() = location.getStartLine()
|