Skip to content

Commit 3575db1

Browse files
committed
Rule 7.0.2: Use getUnconverted.
1 parent 668e518 commit 3575db1

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

cpp/misra/src/rules/RULE-7-0-2/NoImplicitBoolConversion.ql

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -90,7 +90,7 @@ where
9090
// Exception 2: Contextual conversion from class with explicit operator bool is allowed
9191
not (
9292
op.isExplicit() and
93-
isInContextualBoolContext(conversionCall)
93+
isInContextualBoolContext(conversionCall.getUnconverted())
9494
) and
9595
reason =
9696
"Conversion operator call from '" + conversionCall.getQualifier().getType().toString() +

0 commit comments

Comments
 (0)