clang 22.0.0git
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 256 of file DeclarationFragments.h.

Constructor & Destructor Documentation

◆ FunctionSignature()

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

Referenced by addParameter().

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 284 of file DeclarationFragments.h.

◆ getParameters()

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

Definition at line 269 of file DeclarationFragments.h.

◆ getReturnType()

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

Definition at line 270 of file DeclarationFragments.h.

◆ setReturnType()

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

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