Fix creation of function definition asts
Fix creation of function definition asts

robertoraggi/cplusplus,robertoraggi/cplusplus,robertoraggi/cplusplus,robertoraggi/cplusplus,robertoraggi/cplusplus,robertoraggi/cplusplus