clang 22.0.0git
clang::extractapi::SymbolReference Struct Reference

sources. More...

#include "clang/ExtractAPI/API.h"

Public Member Functions

 SymbolReference ()=default
 SymbolReference (StringRef Name, StringRef USR, StringRef Source="")
 SymbolReference (const APIRecord *R)
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.
const APIRecordRecord = nullptr

Detailed Description

sources.

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

References Name, Source, and USR.

◆ SymbolReference() [3/3]

SymbolReference::SymbolReference ( const APIRecord * R)

Definition at line 23 of file API.cpp.

References Name, Record, and USR.

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 175 of file API.h.

References Name, Source, and USR.

Member Data Documentation

◆ Name

◆ Record

const APIRecord* clang::extractapi::SymbolReference::Record = nullptr

Definition at line 165 of file API.h.

Referenced by SymbolReference().

◆ Source

StringRef clang::extractapi::SymbolReference::Source

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

Definition at line 162 of file API.h.

Referenced by empty(), and SymbolReference().

◆ USR

StringRef clang::extractapi::SymbolReference::USR

Definition at line 159 of file API.h.

Referenced by empty(), SymbolReference(), and SymbolReference().


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