I simplified a part of the code,
Details
Diff Detail
Event Timeline
Thanks for the patch Shu! Next time, please upload the patch with full context. (see https://llvm.org/docs/Phabricator.html#requesting-a-review-via-the-web-interface).
lldb/source/Host/common/Editline.cpp | ||
---|---|---|
307 ↗ | (On Diff #247070) | Do we need the (int) cast? If the compiler complains when you remove it, I think a better alternative would be to use std::max<int>(3, ...). |
I fixed a little according to your instruction, and I made an additional revision. (I revised type inference.)
source/Host/common/Editline.cpp | ||
---|---|---|
150 | Please run clang format over your patch. If you add the following file [1] to your path, you can run git clang-format and it will only reformat the staged changes. [1] https://github.com/llvm/llvm-project/blob/master/clang/tools/clang-format/git-clang-format |
I can commit it for you, but @teemperor asked me to hold off until he's had the chance to take a look.
Actually this LGTM (Jonas already caught the thing I wanted to complain about) but the commit message needs some improvements:
- The title should contain "[NFC]" (which is short for "No functional change" and just means that you didn't change any functionality here. Makes it easier for people looking for bugs).
- Put a "[lldb]" in front of the title to show that this is just an LLDB commit.
- Maybe a more descriptive title between those two tags such as "Minor code cleanup in Editline.cpp". It should be clear from the title what this commit is doing.
I'll do that here but in the next commit you are on your own for making a good title :).
Please run clang format over your patch. If you add the following file [1] to your path, you can run git clang-format and it will only reformat the staged changes.
[1] https://github.com/llvm/llvm-project/blob/master/clang/tools/clang-format/git-clang-format