diff --git a/addons/misra_9.py b/addons/misra_9.py index 345cf27a404..7e0b66d0500 100644 --- a/addons/misra_9.py +++ b/addons/misra_9.py @@ -476,7 +476,9 @@ def createRecordChildrenDefs(ed, var): valueType = ed.valueType if not valueType or not valueType.typeScope: return - if valueType.pointer>=1: + if var.typeEndToken.str == '*': + child = ElementDef("pointer", var.nameToken, var.nameToken.valueType) + ed.addChild(child) return for variable in valueType.typeScope.varlist: if variable is var: