diff options
Diffstat (limited to 'scripts/fix_json_database.py')
-rwxr-xr-x | scripts/fix_json_database.py | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/scripts/fix_json_database.py b/scripts/fix_json_database.py index f0728ffe..167f2b71 100755 --- a/scripts/fix_json_database.py +++ b/scripts/fix_json_database.py @@ -57,6 +57,10 @@ f.close() decoded = json.loads(contents) new_decoded = [] for cmd in decoded: + if 'file' in cmd: + if cmd['file'].endswith('.moc') or cmd['file'].endswith('.rcc') or cmd['file'].endswith('_moc.cpp'): + continue + if 'command' in cmd or 'arguments' in cmd: if 'command' in cmd: cmd['command'] = fix_command(cmd['command']) |