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
17 lines
279 B
C++
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;
|
|
}
|