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

Method read_ctu_info_line

addons/misra.py:4860–4871  ·  view source on GitHub ↗
(self, line)

Source from the content-addressed store, hash-verified

4858 self.executeCheck(2210, self.misra_22_10, cfg)
4859
4860 def read_ctu_info_line(self, line):
4861 if not line.startswith('{'):
4862 return None
4863 try:
4864 ctu_info = json.loads(line)
4865 except json.decoder.JSONDecodeError:
4866 return None
4867 if 'summary' not in ctu_info:
4868 return None
4869 if 'data' not in ctu_info:
4870 return None
4871 return ctu_info
4872
4873 def analyse_ctu_info(self, ctu_info_files):
4874 all_typedef_info = {}

Callers 2

analyse_ctu_infoMethod · 0.95
test_read_ctu_info_lineFunction · 0.80

Calls

no outgoing calls

Tested by 1

test_read_ctu_info_lineFunction · 0.64