[PATCH] D112926: run-clang-tidy.py analyze unique files only
Salman Javed via Phabricator via cfe-commits
cfe-commits at lists.llvm.org
Fri Nov 5 23:54:26 PDT 2021
This revision was automatically updated to reflect the committed changes.
Closed by commit rG0dc856ed20e0: [clang-tidy] run-clang-tidy.py: analyze unique files only (authored by serkazi, committed by salman-javed-nz).
Repository:
rG LLVM Github Monorepo
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D112926/new/
https://reviews.llvm.org/D112926
Files:
clang-tools-extra/clang-tidy/tool/run-clang-tidy.py
Index: clang-tools-extra/clang-tidy/tool/run-clang-tidy.py
===================================================================
--- clang-tools-extra/clang-tidy/tool/run-clang-tidy.py
+++ clang-tools-extra/clang-tidy/tool/run-clang-tidy.py
@@ -273,8 +273,8 @@
# 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:
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D112926.385242.patch
Type: text/x-patch
Size: 613 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/cfe-commits/attachments/20211106/54513b20/attachment.bin>
More information about the cfe-commits
mailing list