[Lldb-commits] [lldb] [lldb][CPlusPlus] Always use CPlusPlusNameParser for parsing C++ function names (PR #137072)
Michael Buch via lldb-commits
lldb-commits at lists.llvm.org
Thu Apr 24 02:24:20 PDT 2025
================
@@ -174,6 +175,9 @@ int main(int argc, char **argv) {
//% self.expect("expr (new struct C[1]); side_effect", endstr=" = 4\n")
//% self.expect("expr delete c2; side_effect", endstr=" = 1\n")
//% self.expect("expr delete[] c3; side_effect", endstr=" = 2\n")
+ //% self.expect("image lookup -n operator()", substrs=["C::operator()(int)"])
----------------
Michael137 wrote:
Yea it was deducing that `operator` is the basename because it just does a simple search for `()` and then checks whether the rest of the name looks like a valid function identifier.
> Could you also add this to the unit tests in unittests/Language/CPlusPlus/CPlusPlusLanguageTest.cpp
Yup!
https://github.com/llvm/llvm-project/pull/137072
More information about the lldb-commits
mailing list