struct SymbolReference

Declaration

struct SymbolReference { /* full declaration omitted */ };

Description

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

Declared at: clang/include/clang/ExtractAPI/API.h:314

Member Variables

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

Method Overview

Methods

SymbolReference()

Declared at: clang/include/clang/ExtractAPI/API.h:321

SymbolReference(llvm::StringRef Name,
                llvm::StringRef USR = "",
                llvm::StringRef Source = "")

Declared at: clang/include/clang/ExtractAPI/API.h:322

Parameters

llvm::StringRef Name
llvm::StringRef USR = ""
llvm::StringRef Source = ""

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

Declared at: clang/include/clang/ExtractAPI/API.h:324

Parameters

const clang::extractapi::APIRecord& Record

bool empty() const

Description

Determine if this SymbolReference is empty.

Declared at: clang/include/clang/ExtractAPI/API.h:330

Returns

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