Files
llvm-project/lldb/test/API/python_api/basename/main.cpp
Jonas Devlieghere 2a062d6936 [lldb] Add SBFunction::GetBaseName() & SBSymbol::GetBaseName() (#155939)
When you are trying for instance to set a breakpoint on a function by
name, but the SBFunction or SBSymbol are returning demangled names with
argument lists, that match can be tedious to do. Internally, the base
name of a symbol is something we handle all the time, so it's reasonable
that there should be a way to get that info from the API as well.

rdar://159318791
2025-08-28 19:10:52 -07:00

17 lines
279 B
C++

#include <iostream>
namespace ns {
template <typename T> class MyClass {
public:
void templateFunc() {
std::cout << "In templateFunc" << std::endl; // Set a breakpoint here
}
};
} // namespace ns
int main() {
ns::MyClass<int> obj;
obj.templateFunc();
return 0;
}