Details
- Reviewers
teemperor
Diff Detail
Event Timeline
Thanks for the patch! I think we can actually simplify that code even more by just removing the !got_line checks in both ifs? There is really no reason to have them from what I can see.
lldb/source/Core/IOHandler.cpp | ||
---|---|---|
387–389 | Just a small FYI: I removed the m_editing variable here in 324000054652d47467d23b73ada5c8a599087167 | |
435 | This version is fine too, but we could potentially do an LLVMy early return: if (!got_line) return false; [...] return true; |
lldb/source/Core/IOHandler.cpp | ||
---|---|---|
376 | A goto is not warranted here, using if (!got_line && !in is perfectly fine and less lines. |
Only clang-tidy is upset and it is falsely flagging "missing" files
This is because llvm precommit doesn't actually build lldb (due to some test failures they were/are having) so those headers are unknown to clang-tidy when it runs. You can ignore it.
A goto is not warranted here, using if (!got_line && !in is perfectly fine and less lines.