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

Function isEnumConstant

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

Source from the content-addressed store, hash-verified

1043
1044
1045def isEnumConstant(expr):
1046 if not expr or not expr.values:
1047 return False
1048 values = expr.values
1049 return len(values) == 1 and values[0].valueKind == 'known'
1050
1051
1052def isConstantExpression(expr):

Callers 2

isConstantExpressionFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected