clang 18.0.0git
Public Member Functions | Public Attributes | List of all members
clang::extractapi::SymbolReference Struct Reference

This represents a reference to another symbol that might come from external sources. More...

#include "clang/ExtractAPI/API.h"

Public Member Functions

 SymbolReference ()=default
 
 SymbolReference (StringRef Name, StringRef USR="", StringRef Source="")
 
 SymbolReference (const APIRecord &Record)
 
 SymbolReference (const APIRecord *Record)
 
bool empty () const
 Determine if this SymbolReference is empty.
 

Public Attributes

StringRef Name
 
StringRef USR
 
StringRef Source
 The source project/module/product of the referred symbol.
 

Detailed Description

This represents a reference to another symbol that might come from external sources.

Definition at line 858 of file API.h.

Constructor & Destructor Documentation

◆ SymbolReference() [1/4]

clang::extractapi::SymbolReference::SymbolReference ( )
default

◆ SymbolReference() [2/4]

clang::extractapi::SymbolReference::SymbolReference ( StringRef  Name,
StringRef  USR = "",
StringRef  Source = "" 
)
inline

Definition at line 866 of file API.h.

◆ SymbolReference() [3/4]

clang::extractapi::SymbolReference::SymbolReference ( const APIRecord Record)
inline

Definition at line 868 of file API.h.

◆ SymbolReference() [4/4]

clang::extractapi::SymbolReference::SymbolReference ( const APIRecord Record)
inline

Definition at line 870 of file API.h.

Member Function Documentation

◆ empty()

bool clang::extractapi::SymbolReference::empty ( ) const
inline

Determine if this SymbolReference is empty.

Returns
true if and only if all Name, USR, and Source is empty.

Definition at line 876 of file API.h.

References Name, Source, and USR.

Member Data Documentation

◆ Name

StringRef clang::extractapi::SymbolReference::Name

◆ Source

StringRef clang::extractapi::SymbolReference::Source

The source project/module/product of the referred symbol.

Definition at line 863 of file API.h.

Referenced by empty().

◆ USR

StringRef clang::extractapi::SymbolReference::USR

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