Update advancedParserClasses.cpp

Added modified getFunctionDeclarations function. Works properly, however not sure how to implement it in the program. Not sure where to call the function in the program.