diff options
author | Zequan Wu <zequanwu@google.com> | 2021-10-06 14:18:12 -0700 |
---|---|---|
committer | Zequan Wu <zequanwu@google.com> | 2021-10-08 10:25:54 -0700 |
commit | f93169226a298f8fb22d768671d5564030c0ffa9 (patch) | |
tree | c978e94414a4e58240496e8f8c51df0b9ac545be /lldb/source/Plugins/ScriptInterpreter/Python/SWIGPythonBridge.h | |
parent | c960c8c33997af21492cf2d9a39c13ac78fe6c62 (diff) | |
download | llvm-f93169226a298f8fb22d768671d5564030c0ffa9.zip llvm-f93169226a298f8fb22d768671d5564030c0ffa9.tar.gz llvm-f93169226a298f8fb22d768671d5564030c0ffa9.tar.bz2 |
[clang-format-diff] Fix missing formatting for zero length git diff lines
If we only delete lines that are outer block statements (if, while, etc),
clang-format-diff.py can't format the statements inside the block statements.
An example to repro:
1. Delete the if statment at line 118 in llvm/lib/CodeGen/Analysis.cpp.
2. Run `git diff -U0 --no-color HEAD^ | clang/tools/clang-format/clang-format-diff.py -i -p1`
It fails to format the statement after if.
Differential Revision: https://reviews.llvm.org/D111273
Diffstat (limited to 'lldb/source/Plugins/ScriptInterpreter/Python/SWIGPythonBridge.h')
0 files changed, 0 insertions, 0 deletions