rewrite_to_chrome_style: Fix generated code detection on Windows.

Windows doesn't always use / for the path separators: when that
happened, the regex to match against filenames from generated code
would incorrectly fail to match. Rather than trying to parse paths
with a regex, use the built-in utilities in llvm::sys::path.

BUG=578344
R=avi@chromium.org

Change-Id: I1ce87053fd3a76f665064bff5deaf1cd315bfaee
Reviewed-on: https://chromium-review.googlesource.com/472209
Reviewed-by: Lukasz Anforowicz <lukasza@chromium.org>
Cr-Original-Commit-Position: refs/heads/master@{#463136}
Cr-Mirrored-From: https://chromium.googlesource.com/chromium/src
Cr-Mirrored-Commit: c884299b34202991de5437b6e5a2c5a362639166
1 file changed