We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 2a04635 commit 68b4733Copy full SHA for 68b4733
1 file changed
cpp/ql/src/Best Practices/Likely Errors/CommaBeforeMisleadingIndentation.ql
@@ -28,10 +28,10 @@ predicate isCompilerGenerated(ThisExpr te) {
28
29
/** Gets the sub-expression of 'e' with the earliest-starting Location */
30
Expr normalizeExpr(Expr e) {
31
- if forex(Expr q | q = e.(Call).getQualifier() | not isCompilerGenerated(q.(ThisExpr)))
+ if forex(Expr q | q = e.(Call).getQualifier() | not isCompilerGenerated(q))
32
then result = normalizeExpr(e.(Call).getQualifier())
33
else
34
- if forex(Expr q | q = e.(FieldAccess).getQualifier() | not isCompilerGenerated(q.(ThisExpr)))
+ if forex(Expr q | q = e.(FieldAccess).getQualifier() | not isCompilerGenerated(q))
35
then result = normalizeExpr(e.(FieldAccess).getQualifier())
36
37
if e.hasExplicitConversion()
0 commit comments