MCPcopy Create free account
hub / github.com/cppcheck-opensource/cppcheck / isCast

Function isCast

addons/misra.py:812–817  ·  view source on GitHub ↗
(expr)

Source from the content-addressed store, hash-verified

810 return ret[1:] + ')'
811
812def isCast(expr):
813 if not expr or expr.str != '(' or not expr.astOperand1 or expr.astOperand2:
814 return False
815 if simpleMatch(expr, '( )'):
816 return False
817 return True
818
819def is_constant_integer_expression(expr):
820 if expr is None:

Callers 14

get_vartokFunction · 0.70
getEssentialTypeFunction · 0.70
misra_10_5Method · 0.70
misra_10_6Method · 0.70
misra_10_8Method · 0.70
misra_11_3Method · 0.70
misra_11_4Method · 0.70
misra_11_5Method · 0.70
misra_11_6Method · 0.70
misra_11_7Method · 0.70
misra_11_8Method · 0.70

Calls 1

simpleMatchFunction · 0.70

Tested by

no test coverage detected