Parser.parseVariablesOrFunction

Parses either a VariablesDecl or a FunctionDecl.

$(BNF /VariablesOrFunctionDecl := / AutoDecl | VariablesDecl | FunctionDecl /AutoDecl := AutoVariables | AutoFunction /AutoVariables := Name "=" Initializer MoreVariables* ";" /AutoFunction := Name TemplateParameterList? ParameterList FunctionBody /VariablesDecl := / BasicTypes Name DeclaratorSuffix? ("=" Initializer)? MoreVariables* ";" /MoreVariables := "," Name ("=" Initializer)? /FunctionDecl := / BasicTypes Name TemplateParameterList? ParameterList FunctionBody /Name := Identifier)

class Parser
Declaration
parseVariablesOrFunction

Parameters

stcs

Previously parsed storage classes.

protection

Previously parsed protection attribute.

linkType

Previously parsed linkage type.

testAutoDeclaration
Type: bool

Whether to check for an AutoDecl.

Meta