(proj_dir)
| 19 | ' ^\n') % os.path.join('b', 'b.c') |
| 20 | |
| 21 | def __create_compile_commands(proj_dir): |
| 22 | proj_dir = str(proj_dir) |
| 23 | j = [{'directory': os.path.join(proj_dir, 'a'), 'command': 'gcc -c a.c', 'file': 'a.c'}, |
| 24 | {'directory': proj_dir, 'command': 'gcc -c b/b.c', 'file': 'b/b.c'}] |
| 25 | with open(os.path.join(proj_dir, __COMPILE_COMMANDS_JSON), 'wt') as f: |
| 26 | f.write(json.dumps(j)) |
| 27 | |
| 28 | |
| 29 | def test_file_filter(): |
no test coverage detected