clang 19.0.0git
Classes | Public Member Functions | List of all members
clang::extractapi::FunctionSignature Class Reference

Store function signature information with DeclarationFragments of the return type and parameters. More...

#include "clang/ExtractAPI/DeclarationFragments.h"

Classes

struct  Parameter
 Parameter holds the name and DeclarationFragments of a single parameter. More...
 

Public Member Functions

 FunctionSignature ()=default
 
const std::vector< Parameter > & getParameters () const
 
const DeclarationFragmentsgetReturnType () const
 
FunctionSignatureaddParameter (StringRef Name, DeclarationFragments Fragments)
 
void setReturnType (DeclarationFragments RT)
 
bool empty () const
 Determine if the FunctionSignature is empty.
 

Detailed Description

Store function signature information with DeclarationFragments of the return type and parameters.

Definition at line 214 of file DeclarationFragments.h.

Constructor & Destructor Documentation

◆ FunctionSignature()

clang::extractapi::FunctionSignature::FunctionSignature ( )
default

Member Function Documentation

◆ addParameter()

FunctionSignature & clang::extractapi::FunctionSignature::addParameter ( StringRef  Name,
DeclarationFragments  Fragments 
)
inline

◆ empty()

bool clang::extractapi::FunctionSignature::empty ( ) const
inline

Determine if the FunctionSignature is empty.

Returns
true if the return type DeclarationFragments is empty and there is no parameter, otherwise false.

Definition at line 242 of file DeclarationFragments.h.

References clang::extractapi::DeclarationFragments::getFragments().

◆ getParameters()

const std::vector< Parameter > & clang::extractapi::FunctionSignature::getParameters ( ) const
inline

Definition at line 227 of file DeclarationFragments.h.

◆ getReturnType()

const DeclarationFragments & clang::extractapi::FunctionSignature::getReturnType ( ) const
inline

Definition at line 228 of file DeclarationFragments.h.

◆ setReturnType()

void clang::extractapi::FunctionSignature::setReturnType ( DeclarationFragments  RT)
inline

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