[clang-tidy] Don't use groups in the big regexy filter
authorAlexander Kornienko <alexfh@google.com>
Thu, 23 Mar 2017 16:29:39 +0000 (16:29 +0000)
committerAlexander Kornienko <alexfh@google.com>
Thu, 23 Mar 2017 16:29:39 +0000 (16:29 +0000)
Fixes https://bugs.llvm.org/show_bug.cgi?id=27641.

llvm-svn: 298619

clang-tools-extra/clang-tidy/tool/run-clang-tidy.py

index 2e796d5..aa1dfc8 100755 (executable)
@@ -182,7 +182,7 @@ def main():
     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.