(debug)
| 36 | |
| 37 | |
| 38 | def get_symdb(debug): |
| 39 | debug = re.sub(r'0x[0-9a-fA-F]+', '0x12345678', debug) |
| 40 | debug = re.sub(r'nestedIn: Struct', 'nestedIn: Class', debug) |
| 41 | debug = re.sub(r'classDef: struct', 'classDef: class', debug) |
| 42 | debug = re.sub(r'isInline: [a-z]+', 'isInline: ---', debug) |
| 43 | debug = re.sub(r'definedType: .*', 'definedType: ---', debug) |
| 44 | debug = re.sub(r'needInitialization: .*', 'needInitialization: ---', debug) |
| 45 | debug = re.sub(r'functionOf: .*', 'functionOf: ---', debug) |
| 46 | debug = re.sub(r'0x12345678 Struct', '0x12345678 Class', debug) |
| 47 | |
| 48 | pos1 = debug.rfind('\n### Symbol database ###\n') |
| 49 | if pos1 < 0: |
| 50 | return '' |
| 51 | pos1 = debug.find('\n', pos1) + 1 |
| 52 | assert pos1 > 0 |
| 53 | pos2 = debug.find("\n##", pos1) |
| 54 | if pos2 < 0: |
| 55 | return debug[pos1:] |
| 56 | return debug[pos1:pos2-1] |
| 57 | |
| 58 | |
| 59 | def compare_ast_symdb(cppcheck_parameters: str): |
no test coverage detected