From 0bdd355facad3a085b59356208b16b2892829547 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Daniel=20Marjam=C3=A4ki?= Date: Sat, 20 Jun 2015 21:58:23 +0200 Subject: [PATCH] cppcheckdata.py: update ValueFlow handling --- tools/cppcheckdata.py | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/tools/cppcheckdata.py b/tools/cppcheckdata.py index 7f7f9a612..6fc95d44b 100644 --- a/tools/cppcheckdata.py +++ b/tools/cppcheckdata.py @@ -196,10 +196,14 @@ class ValueFlow: class Value: intvalue = None + tokvalue = None condition = None def __init__(self, element): - self.intvalue = int(element.get('intvalue')) + self.intvalue = element.get('intvalue') + if self.intvalue: + self.intvalue = int(self.intvalue) + self.tokvalue = element.get('tokvalue') self.condition = element.get('condition-line') if self.condition: self.condition = int(self.condition)