Skip to content

Commit 6110770

Browse files
committed
Update reference to MisraBuiltInTypes
1 parent 5ca11e9 commit 6110770

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

cpp/misra/src/rules/RULE-7-11-3/FunctionPointerConversionContext.ql

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -57,7 +57,9 @@ where
5757
c.getType().getUnspecifiedType() instanceof FunctionPointerIshType
5858
) and
5959
// Not a MISRA compliant assignment to a function pointer type
60-
not exists(FunctionPointerIshType targetType | isAssignment(f, targetType, _))
60+
not exists(FunctionPointerIshType targetType |
61+
MisraCpp23BuiltInTypes::isAssignment(f, targetType, _)
62+
)
6163
select f,
6264
"Inappropriate conversion from function type to pointer-to-function type in '" + f.toString() +
6365
"'."

0 commit comments

Comments
 (0)