The files in compile-commands.json can potentially include duplicates.
Change run-clang-tidy.py so that it does not run on the duplicate entries.
Differential Revision: https://reviews.llvm.org/D112926
# Load the database and extract all files.
database = json.load(open(os.path.join(build_path, db_path)))
- files = [make_absolute(entry['file'], entry['directory'])
- for entry in database]
+ files = set([make_absolute(entry['file'], entry['directory'])
+ for entry in database])
max_task = args.j
if max_task == 0: