labath marked 3 inline comments as done. labath added inline comments.
================ Comment at: lldb/source/Plugins/Language/CPlusPlus/CPlusPlusLanguage.cpp:352 + void appendUnchangedInput() { + Result += llvm::StringRef(Written, this->First - Written); + Written = this->First; ---------------- shafik wrote: > labath wrote: > > shafik wrote: > > > `this->First - Written` feels awkward, I feel like given the names they > > > should be reversed :-( > > Yeah, it's a bit weird, but I'm not sure what to do about it.. do you have > > any specific suggestion? `std::distance(Written, First)` ? adding a member > > function like `currentParserPos()` to wrap the `First`? > Yes, I think `currentParserPos()` would be helpful, it would at least clarify > the intent and it makes it more obvious it is doing the correct thing. I'll do that. Thanks. Repository: rG LLVM Github Monorepo CHANGES SINCE LAST ACTION https://reviews.llvm.org/D70721/new/ https://reviews.llvm.org/D70721 _______________________________________________ lldb-commits mailing list lldb-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/lldb-commits