We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 81499ed commit 92e47b8Copy full SHA for 92e47b8
clang/tools/clang-format/clang-format-diff.py
@@ -102,7 +102,7 @@ def main():
102
filename = None
103
lines_by_file = {}
104
for line in sys.stdin:
105
- match = re.search(r"^\+\+\+\ (.*?/){%s}(\S*)" % args.p, line)
+ match = re.search(r"^\+\+\+\ (.*?/){%s}(.+)" % args.p, line.rstrip())
106
if match:
107
filename = match.group(2)
108
if filename is None:
0 commit comments