[clang-tools-extra] r298619 - [clang-tidy] Don't use groups in the big regexy filter

Alexander Kornienko via cfe-commits cfe-commits at lists.llvm.org
Thu Mar 23 09:29:39 PDT 2017


Author: alexfh
Date: Thu Mar 23 11:29:39 2017
New Revision: 298619

URL: http://llvm.org/viewvc/llvm-project?rev=298619&view=rev
Log:
[clang-tidy] Don't use groups in the big regexy filter

Fixes https://bugs.llvm.org/show_bug.cgi?id=27641.

Modified:
    clang-tools-extra/trunk/clang-tidy/tool/run-clang-tidy.py

Modified: clang-tools-extra/trunk/clang-tidy/tool/run-clang-tidy.py
URL: http://llvm.org/viewvc/llvm-project/clang-tools-extra/trunk/clang-tidy/tool/run-clang-tidy.py?rev=298619&r1=298618&r2=298619&view=diff
==============================================================================
--- clang-tools-extra/trunk/clang-tidy/tool/run-clang-tidy.py (original)
+++ clang-tools-extra/trunk/clang-tidy/tool/run-clang-tidy.py Thu Mar 23 11:29:39 2017
@@ -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.




More information about the cfe-commits mailing list