Skip to content

Commit 257748d

Browse files
committed
C++: Rename predicate.
1 parent 6f77e14 commit 257748d

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

cpp/ql/src/Best Practices/Likely Errors/CommaBeforeMisleadingIndentation.ql

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ import semmle.code.cpp.commons.Exclusions
2020
* Gets a child of `e`, including conversions but excluding call arguments.
2121
*/
2222
pragma[inline]
23-
Expr childWithConversions(Expr e) {
23+
Expr getAChildWithConversions(Expr e) {
2424
result.getParentWithConversions() = e and
2525
not result = any(Call c).getAnArgument()
2626
}
@@ -31,7 +31,7 @@ Expr childWithConversions(Expr e) {
3131
*/
3232
int getCandidateColumn(Expr e) {
3333
result = e.getLocation().getStartColumn() or
34-
result = getCandidateColumn(childWithConversions(e))
34+
result = getCandidateColumn(getAChildWithConversions(e))
3535
}
3636

3737
/**
@@ -44,7 +44,7 @@ Expr normalizeExpr(Expr e) {
4444
result = e
4545
or
4646
not e.getLocation().getStartColumn() = min(getCandidateColumn(e)) and
47-
result = normalizeExpr(childWithConversions(e)) and
47+
result = normalizeExpr(getAChildWithConversions(e)) and
4848
result.getLocation().getStartColumn() = min(getCandidateColumn(e))
4949
}
5050

0 commit comments

Comments
 (0)