Index: tools/clang/scripts/run_tool.py |
diff --git a/tools/clang/scripts/run_tool.py b/tools/clang/scripts/run_tool.py |
index 03b4100a2f8da44916932c9de90661e2e2eafeff..3c4f44f83e27c3103ae2d8457a2d29d63c2ce57f 100755 |
--- a/tools/clang/scripts/run_tool.py |
+++ b/tools/clang/scripts/run_tool.py |
@@ -81,6 +81,7 @@ def _ExtractEditsFromStdout(build_directory, stdout): |
for line in lines[start_index + 1:end_index]: |
try: |
edit_type, path, offset, length, replacement = line.split(':', 4) |
+ replacement = replacement.replace("\0", "\n"); |
# Normalize the file path emitted by the clang tool to be relative to the |
# current working directory. |
path = os.path.relpath(os.path.join(build_directory, path)) |