File tree Expand file tree Collapse file tree 1 file changed +3
-3
lines changed
cpp/ql/src/Best Practices/Likely Errors Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -20,7 +20,7 @@ import semmle.code.cpp.commons.Exclusions
20
20
* Gets a child of `e`, including conversions but excluding call arguments.
21
21
*/
22
22
pragma [ inline]
23
- Expr childWithConversions ( Expr e ) {
23
+ Expr getAChildWithConversions ( Expr e ) {
24
24
result .getParentWithConversions ( ) = e and
25
25
not result = any ( Call c ) .getAnArgument ( )
26
26
}
@@ -31,7 +31,7 @@ Expr childWithConversions(Expr e) {
31
31
*/
32
32
int getCandidateColumn ( Expr e ) {
33
33
result = e .getLocation ( ) .getStartColumn ( ) or
34
- result = getCandidateColumn ( childWithConversions ( e ) )
34
+ result = getCandidateColumn ( getAChildWithConversions ( e ) )
35
35
}
36
36
37
37
/**
@@ -44,7 +44,7 @@ Expr normalizeExpr(Expr e) {
44
44
result = e
45
45
or
46
46
not e .getLocation ( ) .getStartColumn ( ) = min ( getCandidateColumn ( e ) ) and
47
- result = normalizeExpr ( childWithConversions ( e ) ) and
47
+ result = normalizeExpr ( getAChildWithConversions ( e ) ) and
48
48
result .getLocation ( ) .getStartColumn ( ) = min ( getCandidateColumn ( e ) )
49
49
}
50
50
You can’t perform that action at this time.
0 commit comments