16 llvm::iterator_range<RelationSlab::iterator>
18 index::SymbolRole Predicate)
const {
19 auto IterPair = std::equal_range(Relations.begin(), Relations.end(),
23 std::tie(B.Subject, B.Predicate);
25 return {IterPair.first, IterPair.second};
30 std::sort(Relations.begin(), Relations.end());
33 Relations.erase(std::unique(Relations.begin(), Relations.end()),
Represents a relation between two symbols.
llvm::iterator_range< iterator > lookup(const SymbolID &Subject, index::SymbolRole Predicate) const
Lookup all relations matching the given subject and predicate.
RelationSlab build() &&
Consumes the builder to finalize the slab.
index::SymbolRole Predicate
===– Representation.cpp - ClangDoc Representation --------—*- C++ -*-===//