mrdocs::FunctionSymbol::HiddenFriendOf
The class this function is a hidden friend of.
Synopsis
Declared in <mrdocs/Metadata/Symbol/Function.hpp>
Optional<SymbolID> HiddenFriendOf;
Description
A hidden friend is a function whose only declarations are friend declarations inside a class: every redeclaration has a non‐`FOK_None` friend object kind, so no matching namespace‐scope declaration exists. Ordinary and qualified lookup cannot find it; only argument‐dependent lookup on the befriending class, or a class derived from it, does.
When set, this is the id of the record whose friend declaration introduced the function. A function befriended by several classes records the first one seen. A copy made when a derived class inherits the friend records that derived class, since the copy presents the friend as seen from it.
Created with MrDocs