File: insertdefined.cc

package info (click to toggle)
oxref 2.02.00-1
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid, trixie
  • size: 692 kB
  • sloc: cpp: 1,282; makefile: 131; sh: 48
file content (21 lines) | stat: -rw-r--r-- 408 bytes parent folder | download | duplicates (7)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
#include "store.ih"

void Store::insertDefined(size_t idx, ostream &out, XrefVector const &xref)
{
    XrefData const &ref = xref[idx];

    auto begin = ref.usedBy().begin();
    auto end = ref.usedBy().end();

    if (begin != end)
    {
        ref.defined(out);
        out << "  Used By:\n";
        for (auto idx: ranger(begin, end))
            usedBy(idx, out, xref);

        out << '\n';
    }
}