Skip to content

Commit

Permalink
fix Issue 13523 - Auto function declaration does not match any gramma…
Browse files Browse the repository at this point in the history
…r rule
  • Loading branch information
9rnsr committed Sep 23, 2014
1 parent 29a53eb commit ea414cc
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 0 deletions.
4 changes: 4 additions & 0 deletions function.dd
Expand Up @@ -5,6 +5,10 @@ $(SPEC_S Functions,
$(GRAMMAR
$(GNAME FuncDeclaration):
$(GLINK2 declaration, StorageClasses)$(OPT) $(GLINK2 declaration, BasicType) $(GLINK FuncDeclarator) $(GLINK FunctionBody)
$(GLINK AutoFuncDeclaration)

$(GNAME AutoFuncDeclaration):
$(GLINK2 declaration, StorageClasses) $(I Identifier) $(GLINK FuncDeclaratorSuffix) $(GLINK FunctionBody)

$(GNAME FuncDeclarator):
$(GLINK2 declaration, BasicType2)$(OPT) $(I Identifier) $(GLINK FuncDeclaratorSuffix)
Expand Down
4 changes: 4 additions & 0 deletions grammar.dd
Expand Up @@ -1119,6 +1119,10 @@ $(H3 $(LNAME2 function, Function))
$(GRAMMAR
$(GNAME FuncDeclaration):
$(GLINK StorageClasses)$(OPT) $(GLINK BasicType) $(GLINK FuncDeclarator) $(GLINK FunctionBody)
$(GLINK AutoFuncDeclaration)

$(GNAME AutoFuncDeclaration):
$(GLINK StorageClasses) $(I Identifier) $(GLINK FuncDeclaratorSuffix) $(GLINK FunctionBody)

$(GNAME FuncDeclarator):
$(GLINK BasicType2)$(OPT) $(I Identifier) $(GLINK FuncDeclaratorSuffix)
Expand Down

0 comments on commit ea414cc

Please sign in to comment.