mrdocs::getPrimaryLocation

getPrimaryLocation overloads

Synopses

Declared in <mrdocs/Metadata/Symbol/Source.hpp>

Determine a location to use when none is explicitly chosen.

Optional<Location>
getPrimaryLocation(Symbol const& I);
» more...

Choose the best location to display for a symbol.

Optional<Location>
getPrimaryLocation(
    SourceInfo const& I,
    bool preferDefinition);
» more...

Return Value

The preferred location if available.

Parameters

NameDescription
ISource info to examine.
preferDefinitionIf true, favor a definition location.