forked from OSchip/llvm-project
[clang-include-fixer] Skip .rc files when finding symbols
Summary: For some reason CMake includes entries for .rc files, but find-all-symbols handles them improperly. See PR43993 Reviewers: sammccall, bkramer Subscribers: cfe-commits Tags: #clang Differential Revision: https://reviews.llvm.org/D70196
This commit is contained in:
parent
399e29ddc6
commit
e2369fd197
|
@ -89,6 +89,9 @@ def main():
|
||||||
database = json.load(open(os.path.join(build_path, db_path)))
|
database = json.load(open(os.path.join(build_path, db_path)))
|
||||||
files = [entry['file'] for entry in database]
|
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
|
max_task = args.j
|
||||||
if max_task == 0:
|
if max_task == 0:
|
||||||
max_task = multiprocessing.cpu_count()
|
max_task = multiprocessing.cpu_count()
|
||||||
|
|
Loading…
Reference in New Issue