================ @@ -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 _______________________________________________ lldb-commits mailing list lldb-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/lldb-commits