mrdocs::SourceInfo

Stores source information for a declaration.

Synopsis

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

struct SourceInfo;

Member Functions

NameDescription
SourceInfo [constructor]Construct with no locations.
~SourceInfo [destructor] [virtual]Polymorphic base needs a virtual destructor.

Data Members

NameDescription
DefLoc Location where the entity was defined
Loc Locations where the entity was declared.

Non-Member Functions

NameDescription
getPrimaryLocationChoose the best location to display for a symbol.
mergeMerge, transferring ownership from the right-hand side.
mergeMerge the location sets, preferring existing def/primary.