clang-tools 22.0.0git
llvm::yaml::Relation Struct Reference

Represents a relation between two symbols. More...

#include <Relation.h>

Public Member Functions

bool operator== (const Relation &Other) const
bool operator< (const Relation &Other) const

Public Attributes

SymbolID Subject
RelationKind Predicate
SymbolID Object

Detailed Description

Represents a relation between two symbols.

For an example:

  • "A is a base class of B" is represented as { Subject = A, Predicate = BaseOf, Object = B }.
  • "Derived::Foo overrides Base::Foo" is represented as { Subject = Base::Foo, Predicate = OverriddenBy, Object = Derived::Foo }.

Definition at line 32 of file Relation.h.

Member Function Documentation

◆ operator<()

bool clang::clangd::Relation::operator< ( const Relation & Other) const
inline

Definition at line 42 of file Relation.h.

◆ operator==()

bool clang::clangd::Relation::operator== ( const Relation & Other) const
inline

Definition at line 37 of file Relation.h.

Member Data Documentation

◆ Object

SymbolID clang::clangd::Relation::Object

Definition at line 35 of file Relation.h.

◆ Predicate

RelationKind clang::clangd::Relation::Predicate

Definition at line 34 of file Relation.h.

◆ Subject

SymbolID clang::clangd::Relation::Subject

Definition at line 33 of file Relation.h.


The documentation for this struct was generated from the following file: