clang 19.0.0git
Public Member Functions | List of all members
clang::api_notes::APINotesReader::VersionedInfo< T > Class Template Reference

Captures the completed versioned information for a particular part of API notes, including both unversioned API notes and each versioned API note for that particular entity. More...

#include "clang/APINotes/APINotesReader.h"

Public Member Functions

 VersionedInfo (std::nullopt_t)
 Form an empty set of versioned information.
 
 VersionedInfo (llvm::VersionTuple Version, llvm::SmallVector< std::pair< llvm::VersionTuple, T >, 1 > Results)
 Form a versioned info set given the desired version and a set of results.
 
std::optional< unsignedgetSelected () const
 Retrieve the selected index in the result set.
 
unsigned size () const
 Return the number of versioned results we know about.
 
const std::pair< llvm::VersionTuple, T > * begin () const
 Access all versioned results.
 
const std::pair< llvm::VersionTuple, T > * end () const
 
const std::pair< llvm::VersionTuple, T > & operator[] (unsigned index) const
 Access a specific versioned result.
 

Detailed Description

template<typename T>
class clang::api_notes::APINotesReader::VersionedInfo< T >

Captures the completed versioned information for a particular part of API notes, including both unversioned API notes and each versioned API note for that particular entity.

Definition at line 52 of file APINotesReader.h.

Constructor & Destructor Documentation

◆ VersionedInfo() [1/2]

template<typename T >
clang::api_notes::APINotesReader::VersionedInfo< T >::VersionedInfo ( std::nullopt_t  )
inline

Form an empty set of versioned information.

Definition at line 62 of file APINotesReader.h.

◆ VersionedInfo() [2/2]

template<typename T >
clang::api_notes::APINotesReader::VersionedInfo< T >::VersionedInfo ( llvm::VersionTuple  Version,
llvm::SmallVector< std::pair< llvm::VersionTuple, T >, 1 >  Results 
)

Form a versioned info set given the desired version and a set of results.

Definition at line 1784 of file APINotesReader.cpp.

Member Function Documentation

◆ begin()

template<typename T >
const std::pair< llvm::VersionTuple, T > * clang::api_notes::APINotesReader::VersionedInfo< T >::begin ( ) const
inline

Access all versioned results.

Definition at line 77 of file APINotesReader.h.

◆ end()

template<typename T >
const std::pair< llvm::VersionTuple, T > * clang::api_notes::APINotesReader::VersionedInfo< T >::end ( ) const
inline

Definition at line 81 of file APINotesReader.h.

◆ getSelected()

template<typename T >
std::optional< unsigned > clang::api_notes::APINotesReader::VersionedInfo< T >::getSelected ( ) const
inline

Retrieve the selected index in the result set.

Definition at line 71 of file APINotesReader.h.

Referenced by maybeAttachUnversionedSwiftName(), and ProcessVersionedAPINotes().

◆ operator[]()

template<typename T >
const std::pair< llvm::VersionTuple, T > & clang::api_notes::APINotesReader::VersionedInfo< T >::operator[] ( unsigned  index) const
inline

Access a specific versioned result.

Definition at line 86 of file APINotesReader.h.

◆ size()

template<typename T >
unsigned clang::api_notes::APINotesReader::VersionedInfo< T >::size ( ) const
inline

Return the number of versioned results we know about.

Definition at line 74 of file APINotesReader.h.

Referenced by ProcessVersionedAPINotes().


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