From a9d3f519d99f699e469856fa22e887ec7233328e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Daniel=20Marjam=C3=A4ki?= Date: Mon, 3 Jul 2023 22:25:24 +0200 Subject: [PATCH] test2 --- addons/misra_9.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) 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: