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

Method set_id_map

addons/cppcheckdata.py:1073–1100  ·  view source on GitHub ↗
(self, arguments)

Source from the content-addressed store, hash-verified

1071 prev = token
1072
1073 def set_id_map(self, arguments):
1074 IdMap = {None: None, '0': None, '00000000': None, '0000000000000000': None, '0x0': None}
1075 for token in self.tokenlist:
1076 IdMap[token.Id] = token
1077 for scope in self.scopes:
1078 IdMap[scope.Id] = scope
1079 for container in self.containers:
1080 IdMap[container.Id] = container
1081 for function in self.functions:
1082 IdMap[function.Id] = function
1083 for variable in self.variables:
1084 IdMap[variable.Id] = variable
1085 for variable in arguments:
1086 IdMap[variable.Id] = variable
1087 for values in self.valueflow:
1088 IdMap[values.Id] = values.values
1089 for token in self.tokenlist:
1090 token.setId(IdMap)
1091 for scope in self.scopes:
1092 scope.setId(IdMap)
1093 #for container in self.containers:
1094 # container.setId(IdMap)
1095 for function in self.functions:
1096 function.setId(IdMap)
1097 for variable in self.variables:
1098 variable.setId(IdMap)
1099 for variable in arguments:
1100 variable.setId(IdMap)
1101
1102 def setIdMap(self, functions_arguments):
1103 """Set relationships between objects stored in this configuration.

Callers 1

setIdMapMethod · 0.95

Calls 1

setIdMethod · 0.45

Tested by

no test coverage detected