[Lldb-commits] [PATCH] D135921: [WIP][lldb][Breakpoint] Fix setting breakpoints on templates by basename
Michael Buch via Phabricator via lldb-commits
lldb-commits at lists.llvm.org
Fri Oct 14 03:50:04 PDT 2022
Michael137 added inline comments.
================
Comment at: lldb/unittests/Language/CPlusPlus/CPlusPlusLanguageTest.cpp:167
+ EXPECT_TRUE(reference_4.ContainsPath("operator"));
EXPECT_TRUE(reference_4.ContainsPath("operator bool"));
----------------
Michael137 wrote:
> labath wrote:
> > Is this actually expected? Like, I don't think it's completely wrong, but I definitely did not expect it to do that.
> I agree, it's not intuitive. This happens because `operator` is a reserved keyword in the eyes of the `CPlusPlusNameParser`. It will just consume the entire token and return an empty string.
>
> This won't work for the breakpoint matching logic. I thought we'd just test it here in case the someone ever decides to change this behaviour
> This won't work for the breakpoint matching logic.
I.e., we don't allow matching breakpoints on just `operator`. IIRC something else in the breakpoint resolver accounts for this. Seems fragile though
Repository:
rG LLVM Github Monorepo
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D135921/new/
https://reviews.llvm.org/D135921
More information about the lldb-commits
mailing list