When I declare a function as friend of a class, this function is listed as a member of this class. Definitely wrong.
class anything
{
protected:
friend anything* GetAnything();
};
Now, GetAnything() is listed as member in the HCB and in the completion list.