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

Function getEssentialCategorylist

addons/misra.py:668–679  ·  view source on GitHub ↗
(operand1, operand2)

Source from the content-addressed store, hash-verified

666
667
668def getEssentialCategorylist(operand1, operand2):
669 if not operand1 or not operand2:
670 return None, None
671 if (operand1.str in ('++', '--') or
672 operand2.str in ('++', '--')):
673 return None, None
674 if ((operand1.valueType and operand1.valueType.pointer) or
675 (operand2.valueType and operand2.valueType.pointer)):
676 return None, None
677 e1 = getEssentialTypeCategory(operand1)
678 e2 = getEssentialTypeCategory(operand2)
679 return e1, e2
680
681
682def get_essential_type_from_value(value, is_signed):

Callers 2

misra_10_4Method · 0.85
misra_10_8Method · 0.85

Calls 1

getEssentialTypeCategoryFunction · 0.85

Tested by

no test coverage detected