clang 24.0.0git
clang::api_notes::FunctionTableKey Struct Reference

A key for a stored global-function or C++-method API notes entry. More...

#include "clang/APINotes/Types.h"

Public Member Functions

 FunctionTableKey ()
 FunctionTableKey (uint32_t ParentContextID, uint32_t NameID)
 FunctionTableKey (uint32_t ParentContextID, uint32_t NameID, const llvm::SmallVectorImpl< IdentifierID > &ParameterTypeIDs)
 FunctionTableKey (std::optional< Context > ParentCtx, IdentifierID NameID)
 FunctionTableKey (std::optional< Context > ParentCtx, IdentifierID NameID, const llvm::SmallVectorImpl< IdentifierID > &ParameterTypeIDs)
llvm::hash_code hashValue () const

Public Attributes

uint32_t parentContextID
uint32_t nameID
std::optional< llvm::SmallVector< IdentifierID, 2 > > parameterTypeIDs

Detailed Description

A key for a stored global-function or C++-method API notes entry.

The key is represented by the ID of its parent context, the declaration name, and optional exact parameter types.

Definition at line 1015 of file Types.h.

Constructor & Destructor Documentation

◆ FunctionTableKey() [1/5]

clang::api_notes::FunctionTableKey::FunctionTableKey ( )
inline

Definition at line 1020 of file Types.h.

References nameID, and parentContextID.

◆ FunctionTableKey() [2/5]

clang::api_notes::FunctionTableKey::FunctionTableKey ( uint32_t ParentContextID,
uint32_t NameID )
inline

Definition at line 1022 of file Types.h.

References nameID, parentContextID, and uint32_t.

◆ FunctionTableKey() [3/5]

clang::api_notes::FunctionTableKey::FunctionTableKey ( uint32_t ParentContextID,
uint32_t NameID,
const llvm::SmallVectorImpl< IdentifierID > & ParameterTypeIDs )
inline

Definition at line 1025 of file Types.h.

References nameID, parameterTypeIDs, parentContextID, and uint32_t.

◆ FunctionTableKey() [4/5]

clang::api_notes::FunctionTableKey::FunctionTableKey ( std::optional< Context > ParentCtx,
IdentifierID NameID )
inline

Definition at line 1031 of file Types.h.

References nameID, parentContextID, and uint32_t.

◆ FunctionTableKey() [5/5]

clang::api_notes::FunctionTableKey::FunctionTableKey ( std::optional< Context > ParentCtx,
IdentifierID NameID,
const llvm::SmallVectorImpl< IdentifierID > & ParameterTypeIDs )
inline

Definition at line 1036 of file Types.h.

References nameID, parameterTypeIDs, parentContextID, and uint32_t.

Member Function Documentation

◆ hashValue()

llvm::hash_code clang::api_notes::FunctionTableKey::hashValue ( ) const
inline

Member Data Documentation

◆ nameID

uint32_t clang::api_notes::FunctionTableKey::nameID

◆ parameterTypeIDs

std::optional<llvm::SmallVector<IdentifierID, 2> > clang::api_notes::FunctionTableKey::parameterTypeIDs

◆ parentContextID

uint32_t clang::api_notes::FunctionTableKey::parentContextID

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