|
15 | 15 | import cpp |
16 | 16 | import codingstandards.cpp.misra |
17 | 17 |
|
18 | | -fromCastcast,TypesourceType,TypetargetType |
| 18 | +fromCastcast,TypesourceType,IntegralTypetargetType |
19 | 19 | where |
20 | 20 | notisExcluded(cast, Conversions2Package::noPointerToIntegralCastQuery())and |
21 | 21 | sourceType=cast.getExpr().getType().getUnspecifiedType()and |
22 | 22 | targetType=cast.getType().getUnspecifiedType()and |
23 | | -(sourceTypeinstanceofPointerTypeorsourceTypeinstanceofFunctionPointerType)and |
24 | | -targetTypeinstanceofIntegralType |
25 | | -selectcast,"Cast converts pointer type to integral type '"+targetType.toString()+"'." |
| 23 | +(sourceTypeinstanceofPointerTypeorsourceTypeinstanceofFunctionPointerType) |
| 24 | +selectcast,"Cast converts pointer type to integral type '"+targetType+"'." |