This Bugzilla instance is a read-only archive of historic NetBeans bug reports. To report a bug in NetBeans please follow the project's instructions for reporting issues.
{ #external_declaration = #(#[CSM_FUNCTION_DECLARATION, "CSM_FUNCTION_DECLARATION"], #external_declaration); }
|
// Function definition with return value
((LITERAL___extension__)? declaration_specifiers[false, false] function_declarator[true, false] LCURLY)=>
((LITERAL___extension__)? (options {greedy=true;} :function_attribute_specification!)? declaration_specifiers[false, false] function_declarator[true, false] LCURLY)=>
{if (statementTrace>=1)
printf("external_declaration_8[%d]: Function definition\n",
LT(1).getLine());
}
(LITERAL___extension__!)? function_definition
(LITERAL___extension__!)? (options {greedy=true;} :function_attribute_specification!)? function_definition
{ #external_declaration = #(#[CSM_FUNCTION_DEFINITION, "CSM_FUNCTION_DEFINITION"], #external_declaration); }
// FIXUP: Function definition without return value
green [5:44/196-5:53/205] TYPE: int TEXT=int [5:44/196-5:47/199] INIT: null SCOPE: glFunction
blue [5:55/207-5:63/215] TYPE: int TEXT=int [5:55/207-5:58/210] INIT: null SCOPE: glFunction
RETURNS void TEXT=void [5:7/159-5:11/163]
FUNCTION DEFINITION foo_149506 [8:37/282-8:64/309] FunctionDDImpl SCOPE: func_decl_prefix_attributes.cc
SIGNATURE foo_149506()
UNIQUE NAME f:foo_149506()
DECLARATION: foo_149506 [8:37/282-8:64/309]
PARAMETERS:
RETURNS void TEXT=void [8:37/282-8:48/293]
STATEMENT COMPOUND [8:62/307-8:64/309] SCOPE: foo_149506
========== Dumping model of PROJECT DummyProject
FUNCTION glFunction [5:7/159-5:66/218] FunctionImpl SCOPE: $Global$
GLAPI void GLAPIENTRY glFunction( int red, int green, int blue );
// example from IZ#149506
__attribute__((format(printf,0,1))) static void foo_149506() {}