commit | eaada5c91e986ec595dc9661c5f9232d63f988c8 | [log] [tgz] |
---|---|---|
author | Alexander Kornienko <alexfh@google.com> | Thu Mar 23 16:29:39 2017 +0000 |
committer | Alexander Kornienko <alexfh@google.com> | Thu Mar 23 16:29:39 2017 +0000 |
tree | 964629429975d1f603d3561a47510fc630b24795 | |
parent | 315cd1fec9864bf974545a0860f50b8788f72c86 [diff] [blame] |
[clang-tidy] Don't use groups in the big regexy filter Fixes https://bugs.llvm.org/show_bug.cgi?id=27641. llvm-svn: 298619
diff --git a/clang-tools-extra/clang-tidy/tool/run-clang-tidy.py b/clang-tools-extra/clang-tidy/tool/run-clang-tidy.py index 2e796d5..aa1dfc8 100755 --- a/clang-tools-extra/clang-tidy/tool/run-clang-tidy.py +++ b/clang-tools-extra/clang-tidy/tool/run-clang-tidy.py
@@ -182,7 +182,7 @@ tmpdir = tempfile.mkdtemp() # Build up a big regexy filter from all command line arguments. - file_name_re = re.compile('(' + ')|('.join(args.files) + ')') + file_name_re = re.compile('|'.join(args.files)) try: # Spin up a bunch of tidy-launching threads.