Skip to content

ASTtools::getNumArgs

Returns the number of function arguments, including 'this' for member functions.

Synopsis

Declared in <src/midend/programTransformation/astOutlining/ASTtools.hh>

size_t
getNumArgs(SgFunctionDeclaration const* func);

Description

Examples: void foo (void); // 0 args void A::foo (void); // 1 arg, including 'this'

void foo (int); // 1 arg void A::foo (int); // 2 args, including 'this'

Parameters

Name

Description

func

This class represents the concept of a function declaration statement.

Created with MrDocs