[clang] Fix filename parsing in clang-format-diff.py for paths with spaces (PR #135779)
Selim Keles via cfe-commits
cfe-commits at lists.llvm.org
Thu Apr 17 23:06:03 PDT 2025
================
@@ -102,9 +102,9 @@ def main():
filename = None
lines_by_file = {}
for line in sys.stdin:
- match = re.search(r"^\+\+\+\ (.*?/){%s}(\S*)" % args.p, line)
+ match = re.search(r"^\+\+\+\s+(?:.*?/){%s}(.+)$" % args.p, line)
----------------
selimkeles wrote:
Made the change suggested, tested, working good. Messed up the PR with force push sorry about that.
https://github.com/llvm/llvm-project/pull/135779
More information about the cfe-commits
mailing list