clang 20.0.0git
Public Member Functions | Public Attributes | List of all members
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.

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.

◆ Kind

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

Definition at line 90 of file DeclarationFragments.h.

◆ PreciseIdentifier

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

The USR of the fragment symbol, if applicable.

Definition at line 93 of file DeclarationFragments.h.

◆ Spelling

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

Definition at line 89 of file DeclarationFragments.h.


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