You are part of a team working on a large program. The source code for this prog
ID: 3574897 • Letter: Y
Question
You are part of a team working on a large program. The source code for this program is kept in the directory ~cs252/Assignments/commandsAsst/project. After a certain amount of debate, the team has decided to change the order of the parameters of the function sequentialInsert. Someone else is actually changing the definition of that function. Your job is to find all the places where that function is called and to make repairs as necessary. What command would you give to list all calls to that function? You should show the lines of code containing each call and the name of the file from in which each such line occurs. (It’s OK to produce a few incidental uses of the function name as well, because you will be inspecting the output before actually making the changes.)
Explanation / Answer
If it is a team of large program then definitely a central repository will be there to manage codes as different programmers would be working on same code or different code at the same time and keep all in sync and on same page a central repository is required like SVN and if you want to make changes to a particular function like its definition then you need to go to that function and get all the places where it is called (by call hierarchy) and see in history when and what all places it has been changed and after doing complete impact analysis you can go ahead with the change and if two changes are done by two separate people then commit your changes to SVN so that other person can work on his changes along with your changes.
Related Questions
drjack9650@gmail.com
Navigate
Integrity-first tutoring: explanations and feedback only — we do not complete graded work. Learn more.