[PATCH] D70196: [clang-include-fixer] Skip .rc files when finding symbols
Reid Kleckner via Phabricator via cfe-commits
cfe-commits at lists.llvm.org
Thu Nov 14 10:06:41 PST 2019
This revision was automatically updated to reflect the committed changes.
Closed by commit rGe2369fd197d9: [clang-include-fixer] Skip .rc files when finding symbols (authored by rnk).
Repository:
rG LLVM Github Monorepo
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D70196/new/
https://reviews.llvm.org/D70196
Files:
clang-tools-extra/clang-include-fixer/find-all-symbols/tool/run-find-all-symbols.py
Index: clang-tools-extra/clang-include-fixer/find-all-symbols/tool/run-find-all-symbols.py
===================================================================
--- clang-tools-extra/clang-include-fixer/find-all-symbols/tool/run-find-all-symbols.py
+++ clang-tools-extra/clang-include-fixer/find-all-symbols/tool/run-find-all-symbols.py
@@ -89,6 +89,9 @@
database = json.load(open(os.path.join(build_path, db_path)))
files = [entry['file'] for entry in database]
+ # Filter out .rc files on Windows. CMake includes them for some reason.
+ files = [f for f in files if not f.endswith('.rc')]
+
max_task = args.j
if max_task == 0:
max_task = multiprocessing.cpu_count()
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D70196.229342.patch
Type: text/x-patch
Size: 687 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/cfe-commits/attachments/20191114/fd67dee7/attachment.bin>
More information about the cfe-commits
mailing list