Skip to content

Commit b58a0ae

Browse files
committed
[clang-tidy] Use raw string for regex pattern
1 parent 6e14f9b commit b58a0ae

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -247,7 +247,7 @@ def main():
247247
filename = None
248248
lines_by_file = {}
249249
for line in sys.stdin:
250-
match = re.search('^\\+\\+\\+\\ "?(.*?/){%s}([^ \t\n"]*)' % args.p, line)
250+
match = re.search(r'^\+\+\+\ "?(.*?/){%s}([^ \t\n"]*)' % args.p, line)
251251
if match:
252252
filename = match.group(2)
253253
if filename is None:

0 commit comments

Comments
 (0)