Skip to content

Commit d95df90

Browse files
committed
[clang-tidy] Use raw string for regex pattern
1 parent 062cecd commit d95df90

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
@@ -272,7 +272,7 @@ def main():
272272
filename = None
273273
lines_by_file = {}
274274
for line in sys.stdin:
275-
match = re.search('^\\+\\+\\+\\ "?(.*?/){%s}([^ \t\n"]*)' % args.p, line)
275+
match = re.search(r'^\+\+\+\ "?(.*?/){%s}([^ \t\n"]*)' % args.p, line)
276276
if match:
277277
filename = match.group(2)
278278
if filename is None:

0 commit comments

Comments
 (0)