clang 22.0.0git
clang::extractapi::DeclarationFragments::Fragment Struct Reference

Fragment holds information of a single fragment. More...

#include "clang/ExtractAPI/DeclarationFragments.h"

Public Member Functions

 Fragment (StringRef Spelling, FragmentKind Kind, StringRef PreciseIdentifier, const Decl *Declaration)

Public Attributes

std::string Spelling
FragmentKind Kind
std::string PreciseIdentifier
 The USR of the fragment symbol, if applicable.
const DeclDeclaration
 The associated declaration, if applicable.

Detailed Description

Fragment holds information of a single fragment.

Definition at line 88 of file DeclarationFragments.h.

Constructor & Destructor Documentation

◆ Fragment()

clang::extractapi::DeclarationFragments::Fragment::Fragment ( StringRef Spelling,
FragmentKind Kind,
StringRef PreciseIdentifier,
const Decl * Declaration )
inline

Definition at line 99 of file DeclarationFragments.h.

References Declaration, Kind, PreciseIdentifier, and Spelling.

Member Data Documentation

◆ Declaration

const Decl* clang::extractapi::DeclarationFragments::Fragment::Declaration

The associated declaration, if applicable.

This is not intended to be used outside of libclang.

Definition at line 97 of file DeclarationFragments.h.

Referenced by Fragment().

◆ Kind

FragmentKind clang::extractapi::DeclarationFragments::Fragment::Kind

Definition at line 90 of file DeclarationFragments.h.

Referenced by Fragment().

◆ PreciseIdentifier

std::string clang::extractapi::DeclarationFragments::Fragment::PreciseIdentifier

The USR of the fragment symbol, if applicable.

Definition at line 93 of file DeclarationFragments.h.

Referenced by Fragment().

◆ Spelling

std::string clang::extractapi::DeclarationFragments::Fragment::Spelling

Definition at line 89 of file DeclarationFragments.h.

Referenced by Fragment().


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