class FunctionSignature

Declaration

class FunctionSignature { /* full declaration omitted */ };

Description

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

Declared at: clang/include/clang/ExtractAPI/DeclarationFragments.h:147

Member Variables

private std::vector<Parameter> Parameters
private clang::extractapi::DeclarationFragments ReturnType

Method Overview

  • public FunctionSignature()
  • public clang::extractapi::FunctionSignature & addParameter(llvm::StringRef Name, clang::extractapi::DeclarationFragments Fragments)
  • public bool empty() const
  • public const std::vector<Parameter> & getParameters() const
  • public const clang::extractapi::DeclarationFragments & getReturnType() const
  • public void setReturnType(clang::extractapi::DeclarationFragments RT)

Methods

FunctionSignature()

Declared at: clang/include/clang/ExtractAPI/DeclarationFragments.h:149

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

Declared at: clang/include/clang/ExtractAPI/DeclarationFragments.h:163

Parameters

llvm::StringRef Name
clang::extractapi::DeclarationFragments Fragments

bool empty() const

Description

Determine if the FunctionSignature is empty.

Declared at: clang/include/clang/ExtractAPI/DeclarationFragments.h:175

Returns

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

const std::vector<Parameter>& getParameters()
    const

Declared at: clang/include/clang/ExtractAPI/DeclarationFragments.h:160

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

Declared at: clang/include/clang/ExtractAPI/DeclarationFragments.h:161

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

Declared at: clang/include/clang/ExtractAPI/DeclarationFragments.h:169

Parameters

clang::extractapi::DeclarationFragments RT