A colleague of mine just pointed out the following:
If you have a C++ file containing
int foo()
time_t bar()
then, as expected, "int" and "time_t" are displayed in
font-lock-type-face, and "foo" and "bar" are displayed in
font-lock-function-name face.
However, if you have this inside a class
class C {
private:
int foo();
time_t bar();
}
then "int foo" is displayed correctly, but
"time_t" and "bar" are displayed in the
default face.
Is this a known bug?