mirror of
https://github.com/carbon-language/carbon-lang.git
synced 2026-10-06 09:34:42 +01:00
[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:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user