[Lldb-commits] [PATCH] D70721: [lldb/cpluspluslanguage] Add constructor substitutor
Pavel Labath via Phabricator via lldb-commits
lldb-commits at lists.llvm.org
Thu Dec 5 03:43:44 PST 2019
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
More information about the lldb-commits
mailing list