Skip to content

Commit e659944

Browse files
committed
Rule 7.0.6: Ignore deleted overloads
1 parent 2ec2814 commit e659944

File tree

3 files changed

+5
-302
lines changed

3 files changed

+5
-302
lines changed

cpp/misra/src/rules/RULE-7-0-6/NumericAssignmentTypeMismatch.ql

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -143,6 +143,9 @@ predicate isOverloadIndependent(Call call, Expr arg) {
143143
// considering parameters with default values may be omitted in the call
144144
overload.getNumberOfParameters() >= call.getNumberOfArguments() and
145145
getMinimumNumberOfParameters(overload) <= call.getNumberOfArguments() and
146+
// Ignore deleted overloads
147+
not overload.isDeleted() and
148+
//
146149
call.getArgument(i) = arg
147150
|
148151
// Check that the parameter types match

0 commit comments

Comments
 (0)