clang 17.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"

Collaboration diagram for clang::extractapi::SymbolReference:
Collaboration graph
[legend]

Public Member Functions

 SymbolReference ()=default
 
 SymbolReference (StringRef Name, StringRef USR="", StringRef Source="")
 
 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 428 of file API.h.

Constructor & Destructor Documentation

◆ SymbolReference() [1/3]

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

◆ SymbolReference() [2/3]

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

Definition at line 436 of file API.h.

◆ SymbolReference() [3/3]

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

Definition at line 438 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 444 of file API.h.

References Name, Source, and USR.

Member Data Documentation

◆ Name

StringRef clang::extractapi::SymbolReference::Name

Definition at line 429 of file API.h.

Referenced by empty(), and clang::extractapi::ExtractAPIVisitor::VisitObjCInterfaceDecl().

◆ Source

StringRef clang::extractapi::SymbolReference::Source

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

Definition at line 433 of file API.h.

Referenced by empty().

◆ USR

StringRef clang::extractapi::SymbolReference::USR

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