Abpostelnicu created this revision. Abpostelnicu added a reviewer: sylvestre.ledru. Herald added subscribers: cfe-commits, xazax.hun. Herald added a project: clang. Abpostelnicu edited reviewers, added: JonasToth; removed: sylvestre.ledru.
Some paths can have special chars like `file++c.cpp` in this case the regex will fail if we don't escape it. Repository: rG LLVM Github Monorepo https://reviews.llvm.org/D81917 Files: clang-tools-extra/clang-tidy/tool/run-clang-tidy.py Index: clang-tools-extra/clang-tidy/tool/run-clang-tidy.py =================================================================== --- clang-tools-extra/clang-tidy/tool/run-clang-tidy.py +++ clang-tools-extra/clang-tidy/tool/run-clang-tidy.py @@ -277,6 +277,7 @@ tmpdir = tempfile.mkdtemp() # Build up a big regexy filter from all command line arguments. + args.files = [re.escape(f) for f in args.files] file_name_re = re.compile('|'.join(args.files)) return_code = 0
Index: clang-tools-extra/clang-tidy/tool/run-clang-tidy.py =================================================================== --- clang-tools-extra/clang-tidy/tool/run-clang-tidy.py +++ clang-tools-extra/clang-tidy/tool/run-clang-tidy.py @@ -277,6 +277,7 @@ tmpdir = tempfile.mkdtemp() # Build up a big regexy filter from all command line arguments. + args.files = [re.escape(f) for f in args.files] file_name_re = re.compile('|'.join(args.files)) return_code = 0
_______________________________________________ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits