Turning which-function-mode on in Emacs displays the function name in the status bar of the current function where the cursor is at. However, when there're nested functions or method inside class, only the outer most function is displayed.
For example, I have the following class in C++.
class Foo
{
void func1()
{
...
}
};
When the cursor is inside func1(), the class name Foo is displayed on the status bar. How do I make it to display Foo plus func1? Something like Foo.func1 or Foo::func1 would be good.