Add missing valueflow attributes to cppcheckdata.py (#3663)

This commit is contained in:
Paul Fultz II 2022-01-02 01:11:36 -06:00 committed by GitHub
parent 50862d1ace
commit ccea1da33a
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 11 additions and 0 deletions

View File

@ -692,7 +692,16 @@ class Value:
self._tokvalueId = element.get('tokvalue')
self.floatvalue = element.get('floatvalue')
self.containerSize = element.get('container-size')
self.iteratorStart = element.get('iterator-start')
self.iteratorEnd = element.get('iterator-end')
self._lifetimeId = element.get('lifetime')
self.lifetimeScope = element.get('lifetime-scope')
self.lifetimeKind = element.get('lifetime-kind')
self._symbolicId = element.get('symbolic')
self.symbolicDelta = element.get('symbolic-delta')
self.condition = element.get('condition-line')
self.bound = element.get('bound')
self.path = element.get('path')
if self.condition:
self.condition = int(self.condition)
if element.get('known'):
@ -706,6 +715,8 @@ class Value:
def setId(self, IdMap):
self.tokvalue = IdMap.get(self._tokvalueId)
self.lifetime = IdMap.get(self._lifetimeId)
self.symbolic = IdMap.get(self._symbolicId)
def __repr__(self):
attrs = ["intvalue", "tokvalue", "floatvalue", "containerSize",