[clang-tidy] For run-clang-tidy.py escape the paths that are used for analysis.

Some paths can have special chars like `file++c.cpp` in this case the regex will
fail if we don't escape it.
This commit is contained in:
Andi-Bogdan Postelnicu
2020-06-16 12:21:18 +03:00
parent 379c5b31f7
commit 068fa35746
@@ -277,6 +277,7 @@ def main():
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