File tree Expand file tree Collapse file tree 1 file changed +3
-4
lines changed
cpp/misra/src/rules/RULE-8-2-7 Expand file tree Collapse file tree 1 file changed +3
-4
lines changed Original file line number Diff line number Diff line change 1515import cpp
1616import codingstandards.cpp.misra
1717
18- from Cast cast , Type sourceType , Type targetType
18+ from Cast cast , Type sourceType , IntegralType targetType
1919where
2020 not isExcluded ( cast , Conversions2Package:: noPointerToIntegralCastQuery ( ) ) and
2121 sourceType = cast .getExpr ( ) .getType ( ) .getUnspecifiedType ( ) and
2222 targetType = cast .getType ( ) .getUnspecifiedType ( ) and
23- ( sourceType instanceof PointerType or sourceType instanceof FunctionPointerType ) and
24- targetType instanceof IntegralType
25- select cast , "Cast converts pointer type to integral type '" + targetType .toString ( ) + "'."
23+ ( sourceType instanceof PointerType or sourceType instanceof FunctionPointerType )
24+ select cast , "Cast converts pointer type to integral type '" + targetType + "'."
You can’t perform that action at this time.
0 commit comments