Add \n to the regex in clang-tidy-diff.py in order to fix http://llvm.org/PR24637,

git usecase for multiple files diff.

llvm-svn: 246575
This commit is contained in:
Yaron Keren 2015-09-01 19:08:17 +00:00
parent e7eabbb550
commit 95e6d9ebbd

View File

@ -67,7 +67,7 @@ def main():
filename = None
lines_by_file = {}
for line in sys.stdin:
match = re.search('^\+\+\+\ \"?(.*?/){%s}([^ \t\"]*)' % args.p, line)
match = re.search('^\+\+\+\ \"?(.*?/){%s}([^ \t\n\"]*)' % args.p, line)
if match:
filename = match.group(2)
if filename == None: